Commit Graph

1558 Commits

Author SHA1 Message Date
baldurk bc5afeeef4 Call GetSizedFormat everywhere
* In future should maybe warn for 1D/2D/3D variants that are
  only from storage calls, where it's invalid.
* It's needed for multisampled since we pipe TexImage*
  through these common functions, which can use unzied
  internalFormats.
2015-08-08 14:56:45 -07:00
baldurk 249b79e383 Don't fetch or use FBO attach params when object is 0 2015-08-08 14:54:36 -07:00
baldurk 3616524484 Push/pop draw FBO and render in-program overlay to default FBO 2015-08-08 14:53:30 -07:00
baldurk d3ea351c5b Fix typo that was reported 2015-08-06 08:09:15 +02:00
baldurk 120b42c15b Don't assign NULL to GLXDrawable 2015-08-06 07:49:31 +02:00
baldurk 16f8ad5c94 Compile fix 2015-08-05 20:19:41 +02:00
baldurk f67681c4c4 Don't do anything in SwapBuffers if no GL context is active 2015-08-05 18:52:17 +02:00
baldurk da87eaf55a Remove infinite loops clearing GL error flags in case something breaks 2015-08-05 18:47:17 +02:00
baldurk 32ae45d992 Create any parent directory required for log file 2015-08-02 15:42:33 +02:00
baldurk ada7306e1a Expand capture pathnames to full before passing over remote access
* This fixes the issue where an application might have set the capture
  path as relative, and a relative path is passed to the UI which has
  no idea what working directory the path is relative to.
2015-07-31 22:24:37 +02:00
baldurk 286dcb65fe imm_atomic_consume needs to prefix decrement 2015-07-30 19:37:26 +02:00
baldurk 2ee14c1ad9 Add the final bit of horrible code to pretty-ify ifs and loops 2015-07-30 01:10:13 +02:00
baldurk 5a82b6be07 Erase func-parameter declarations as well when inlining them 2015-07-30 01:09:51 +02:00
baldurk 7a71dd4172 Remove gotos before labels even if those labels are ref'd elsewhere 2015-07-30 01:08:05 +02:00
baldurk 4c90182cdf Add super-ultra ugly code to remove temporary 'param' variables 2015-07-30 00:37:19 +02:00
baldurk 6de5e5e144 Don't declare void result that's unused for void function calls 2015-07-30 00:36:53 +02:00
baldurk 8dd535eb26 Fix operation folding checking instruction, not argument 2015-07-29 23:51:56 +02:00
baldurk bce7cde005 Remove the old disassemble-to-string code 2015-07-29 23:47:57 +02:00
baldurk aec9a3a79f Support VectorTimesScalar 2015-07-29 23:47:46 +02:00
baldurk a329ea3f90 Show struct types, and add semicolons to "disassembly" 2015-07-29 23:05:11 +02:00
baldurk 36e3a2489b Remove redundant goto/label pairs 2015-07-29 22:37:28 +02:00
baldurk d011b14cac Implement folding up small instructions with a simple heuristic 2015-07-29 22:27:16 +02:00
baldurk 9af27bff8b Disassemble from module structs 2015-07-29 22:03:12 +02:00
baldurk c5acba7f1f Finished (for limited instruction set) parsing out SPIR-V to structs 2015-07-29 00:50:05 +02:00
baldurk 551fbdd294 Most SPIR-V structs now fleshed out 2015-07-28 23:43:25 +02:00
baldurk 3a792d7136 Further progress including type information parsed out 2015-07-28 23:43:14 +02:00
baldurk 00feb49424 Filling out some global properties, and the operations vector 2015-07-28 19:17:22 +02:00
baldurk acbf5cd0fe Fill out module with some data 2015-07-28 19:07:08 +02:00
baldurk fb9c673bdb Add a struct for a SPIR-V file, and for an operation 2015-07-28 18:44:49 +02:00
Baldur Karlsson 4ba6b556b7 Add some pretty screenshots to README.md 2015-07-25 21:58:25 +02:00
baldurk 99b7f529b6 Fix range bounds check being set up wrongly in shader debug. Refs #143
* The offset is independent of checking the index against the number
  of elements in the view. Otherwise e.g. offset=5 and numelems=1 would
  never be in bounds.
2015-07-25 20:12:26 +02:00
baldurk 8ca621a649 Handle invalid characters in shader filename paths everywhere 2015-07-25 10:33:52 +02:00
baldurk 8cf1a878cc Add locks around static use of CustomMarshal properties
* These locks shouldn't cover much work as generally the caches will
  quickly fill up and the inside-lock work will be quick.
* Also they shouldn't contend as it's quite rare for anything but the
  render thread to go through CustomMarshal.
2015-07-24 00:17:52 +02:00
baldurk 2967a8a5ce Catch overflow exception handling bounding box 2015-07-24 00:16:45 +02:00
baldurk 7c6790d1d7 Check that there are enough children before indexing into nodes 2015-07-24 00:04:52 +02:00
baldurk 98656764b3 Bail out of picking vertices if there are no vertices to pick 2015-07-23 23:49:36 +02:00
baldurk 8fd2fe5932 Separate out calls to glLabelObjectEXT from glObjectLabel
* This is necessary since some of the identifiers are different.
2015-07-23 23:30:06 +02:00
baldurk 5de056135a We need to require GL_ARB_buffer_storage as well as EXT_dsa 2015-07-23 23:10:53 +02:00
baldurk 296d7e39b1 Handle glTextureBufferRangeEXT not being available
* This way we don't have to require GL_ARB_texture_buffer_range as well
  when technically it should only be needed if the application used it.
2015-07-23 23:06:25 +02:00
baldurk dcc5362dc1 On replay check that expected func ptrs for 4.3 + EXT_dsa are present
* Also log out which function pointers are actually available
2015-07-23 20:28:03 +02:00
baldurk 4d5d44d686 Add logging of GL driver and extensions 2015-07-23 20:27:45 +02:00
baldurk d1b00f0f11 Check for function pointer validity before calling 2015-07-23 20:24:57 +02:00
baldurk 13010b72e4 Stop librenderdoc.so from uselessly rebuilding every time 2015-07-20 18:56:42 +02:00
baldurk 79d99cac2d use $(MAKE) to recurse instead of just calling make directly 2015-07-20 18:55:28 +02:00
baldurk 3e9f47f0f3 Fix 100% crash viewing DDS files directly 2015-07-20 18:54:40 +02:00
baldurk 2b0bc2abe2 Bump version for nightly builds to v0.26 2015-07-19 18:33:29 +02:00
baldurk 8df2e86805 When selecting a bookmark, skip over labels v0.25 2015-07-19 13:47:41 +02:00
baldurk b593f7446e Fix picking up global control shortcuts incorrectly 2015-07-19 13:46:24 +02:00
baldurk a6bed1b29e Bump GL serialise version just in case 2015-07-19 11:10:58 +02:00
baldurk c9877b6d0b Re-jig loading progress bar calculation to be smoother/more informative 2015-07-19 10:57:37 +02:00