Commit Graph

2860 Commits

Author SHA1 Message Date
baldurk 5869e9c1bf Handle baseVertex as signed, separately from vertexOffset. Refs #228 2016-03-24 18:50:04 +01:00
Baldur Karlsson 6e4f9f44b3 Merge pull request #226 from cgmb/update-ubuntu-compile-docs
Update Ubuntu compilation dependencies
2016-03-19 15:02:33 +01:00
Cory Bloor abbfd54390 Update Ubuntu compilation dependencies
- Add missing package to apt-get dependencies
- Switch reference version to Ubuntu 14.04 because 15.04 has reached
  end-of-life.
2016-03-19 00:00:36 -06:00
Baldur Karlsson 910dcd43f7 Merge pull request #225 from Zorro666/master
Fix crash if fopen "/proc/self/maps" returns NULL
2016-03-16 15:08:55 -07:00
Jake Turner 97b7eebb3a Fix crash if fopen "/proc/self/maps" returns NULL 2016-03-16 10:26:31 -07:00
Baldur Karlsson 940a7395da Merge pull request #221 from olvaffe/linux-compile-fixes
More Linux compile fixes
2016-03-11 23:45:53 +01:00
Chia-I Wu 64513c9252 Turn on -Wextra
Add -Wextra and silence all warnings with -Wno-*.  Among them, we probably
want to fix

        -Wunused-variable
        -Wunused-but-set-variable
        -Wtype-limits

at some point.
2016-03-12 06:29:31 +08:00
Chia-I Wu 45f72944f1 Silence clang warnings for glslang 2016-03-12 06:29:19 +08:00
Chia-I Wu 2a88f015ef Fix -Wmissing-braces warnings on clang 2016-03-12 06:29:19 +08:00
Chia-I Wu 556069f353 Fix -Wsometimes-uninitialized warnings on clang 2016-03-12 06:29:19 +08:00
Chia-I Wu b571a07ee4 Fix warnings for 32-bit builds
On 32-bit targets, a Vulkan handle has type uint64_t and NULL cannot be
assigned to it.

The size checks for WrappedVk*Res also need to be fixed, considering
sizeof(void*) and struct paddings.
2016-03-12 06:29:19 +08:00
Chia-I Wu 7052a48b5b Fix -Wunused-function warnings 2016-03-12 06:29:19 +08:00
Chia-I Wu e6559843ee Fix -Wignored-qualifiers warnings 2016-03-12 06:29:19 +08:00
Chia-I Wu 810eaca4b5 Use our version of dirname on Linux
std::string::c_str returns "const char *" while POSIX dirname may modify
the contents.
2016-03-12 06:29:19 +08:00
Chia-I Wu e7c71671de Use portable st_mtime for modificatoin time 2016-03-12 06:29:19 +08:00
Chia-I Wu 69c33da1e7 Include errno.h for errno 2016-03-12 06:29:19 +08:00
Chia-I Wu c752f20310 Include stdlib.h for exit
exit is called from RDCFATAL and RDCDUMPMSG.
2016-03-12 06:29:19 +08:00
Chia-I Wu aa8a0d353f Fix glShaderSource with negative lengths
Each element of length can still be negative to indicate the string is
NULL-terminated.
2016-03-12 06:29:19 +08:00
baldurk e3bafd3162 Add protection against indexed GL draw with no ibuffer bound. Refs #217 2016-03-11 22:31:55 +01:00
baldurk a8463bf1d2 Tweak serialisation to be equivalent but have nicer strings. Refs #220 2016-03-11 22:22:46 +01:00
Baldur Karlsson c100e1b6a0 Merge pull request #215 from olvaffe/linux-cmake
Use CMake on Linux
2016-03-11 21:55:17 +01:00
Chia-I Wu cb9449230a Update CMake rules
* Suggest users to use VS on Windows
* Add a top-level wrapper Makefile and disallow in-source builds
* Support clang
* Centralize compiler flags
* Remove all occurrences of "if(WIN32)..."
* Make qrenderdoc an external project
2016-03-11 10:23:56 +08:00
baldurk d7fbd9ca9b Serialise non-POD structure for remote replay 2016-03-10 19:56:31 +01:00
Chia-I Wu 73a2e96c93 Use CMake on Linux
The suggested way to build RenderDoc on Linux is now

  $ mkdir build
  $ cd build
  $ cmake ..
  $ make

It will print an error when used on other platforms.
2016-03-10 10:29:52 +08:00
baldurk 4c72248ba2 Skip over precision statements before redeclaring builtins. Refs #207
* This is clearly blatantly just a hack for this one shader, but I
  refuse on principle to write an entire pre-processor just to figure
  out where to insert a redeclared block that should not be necessary.
2016-03-09 21:02:36 +01:00
baldurk 4beb59aef9 Patch up renderpass initial/final layout if PRESENT_SRC. Refs #209 2016-03-09 20:11:31 +01:00
baldurk 8832d43215 Switch images/bufs back to EXCLUSIVE and just use Q family 0. Refs #208
* Ultimately once multiple queues are supported this will probably want
  to use CONCURRENT and explicitly name all queue families.
2016-03-09 20:09:17 +01:00
baldurk 2091a6c7d5 Replaying vkResetFences() calls is necessary. Refs #210 2016-03-09 19:54:13 +01:00
baldurk d1aba21985 Speculative fix - allow glBindTexture with texture = 0
* Even though it doesn't have an ID, we should allow and serialise
  unbinds of textures.
2016-03-09 17:30:09 +01:00
baldurk 2ee7d3200b Add non-name-mangled alternative exports for layer entry point
* On win32 __stdcall functions get name mangled even if C++ name
  mangling is disabled.
2016-03-08 18:21:28 +01:00
baldurk c7d8f9dea6 Remove WIN64 from projects on 32-bit platforms 2016-03-08 18:21:28 +01:00
baldurk fa087b8825 Rename Get*ProcAddr exports to be android friendly. Refs #205 2016-03-08 18:21:27 +01:00
Baldur Karlsson 097c5f077b Merge pull request #206 from olvaffe/linux-fixes
misc Linux fixes
2016-03-08 07:48:40 +01:00
Chia-I Wu faf1f086df Check for glXIsDirect in MakeContext
Create a direct renerding context when the shared context is too.
Otherwise, I got this error

  X Error of failed request:  BadMatch (invalid parameter attributes)

on nVidia.
2016-03-08 11:51:05 +08:00
Chia-I Wu 1f93ba2d3b Make RenderDoc::SetLogFile safer
logFile will be "" when the app is launched from renderdoccmd on Linux.
2016-03-08 11:51:05 +08:00
Chia-I Wu d6c48c60ef Fix renderdoccmd -c on Linux
* argv[0] should always be set up
* log an error when execve fails
* logfile is always NULL and constructing a std::string from NULL throws
* really apply EnvironmentModification
2016-03-08 11:51:05 +08:00
baldurk 7aa561cc2d Remove a load of validation layer filters that aren't needed anymore
* This is against the master build of the validation layers.
2016-03-08 00:06:15 +01:00
baldurk 17a9ae008a Serialise out sharing mode for swapchain images, replay that on fakes 2016-03-08 00:05:51 +01:00
baldurk 77b7748f3b Use VK_LAYER_LUNARG_standard_validation instead of manual layer list 2016-03-08 00:04:33 +01:00
baldurk 44ff7086bb Set some access masks in transitions that validation flags up 2016-03-07 23:30:59 +01:00
baldurk 560b5966d6 Make sure backbuffer is transitioned between image layouts for overlay 2016-03-07 23:25:17 +01:00
baldurk 1b8c43c512 Vertex input pipeline state entry is actually not optional
* Even if there are no vertex inputs, it cannot be NULL
2016-03-07 23:08:21 +01:00
baldurk 7f73ecc02a Declare images as VK_SHARING_MODE_CONCURRENT
* Necessary for now since the code doesn't acquire ownership
2016-03-07 23:08:06 +01:00
baldurk 93b8d7e5c2 Win32 compile fix 2016-03-07 22:42:17 +01:00
baldurk 187c9c4d9f Track input layouts as their own resources 2016-03-07 22:33:47 +01:00
baldurk 15b963fd47 Add documentation for unstripped-path-specifying code 2016-03-06 15:09:45 +01:00
baldurk 23481c4814 Allow setting unstripped shader debug path at runtime by SetPrivateData 2016-03-06 14:54:08 +01:00
baldurk 3cc79316b3 Add a GUID for the shader debug info that is required in a PRIV section 2016-03-06 14:54:07 +01:00
baldurk 7c85caf763 Minor comment update 2016-03-06 13:19:00 +01:00
unknown 236322d8cf remove debug code 2016-03-06 13:19:00 +01:00