Commit Graph

7693 Commits

Author SHA1 Message Date
baldurk 8d520cd1fb Use non-shader visible descriptor for temp descriptors
* Although not documented or mentioned in the debug layers, when getting a temp
  descriptor for a UAV clear, it must be from a non-shader visible heap.
2018-07-17 20:16:27 +01:00
baldurk d77fac4c6a Fix backwards compatible serialise of RTsSingleHandleToDescriptorRange 2018-07-17 20:16:27 +01:00
baldurk 810a3e77a5 Reset command allocators each frame, after syncing GPU 2018-07-16 23:38:07 +01:00
baldurk 5ff58a0941 Fix 32-bit index decode in GL vertex picking 2018-07-16 23:38:06 +01:00
baldurk e2d228d5f2 Handle broken GetDeviceProcAddr behaviour ourselves
* This might be handled by the ICD using app-profiles, but we replace the app-
  profile with our own for safety so we need to handle this one.
2018-07-16 23:38:06 +01:00
baldurk 6418efb7e8 Handle unsized SRGB formats 2018-07-13 20:06:58 +01:00
baldurk b470141322 Denote updates to prevent wasteful repeated work adding usage entries 2018-07-13 20:06:57 +01:00
baldurk 201dd1c9b4 Don't sort while inserting data into performance counter viewer table 2018-07-13 20:06:57 +01:00
baldurk 2bb263102b Set gl_CurChunk in release as well as development builds.
* Yes I know - shocking, but release builds also need to know which function was
  called!
2018-07-13 15:43:57 +01:00
baldurk 7b8380cba7 Print out GL chunk value if it's unexpected 2018-07-13 15:43:57 +01:00
baldurk 10b82e6255 Fix possible race condition with capture loading
* The event browser called SetEventID from OnCaptureLoaded, which would then
  call OnEventChanged on all viewers, which if they kicked off work could happen
  at the same time as the later call to OpCaptureLoaded for them.
* In the mesh viewer this seemed to lead to a race condition and had a chance to
  corrupt memory.
2018-07-13 15:43:55 +01:00
baldurk 71c104761a Fix sRGB handling on GLES
* Check for EXT_sRGB_write_control extension before enabling. The equivalent
  extension EXT_framebuffer_sRGB on desktop GL has been core since 3.1.
* Look for EGL_KHR_gl_colorspace extension and request an sRGB surface when
  creating window surfaces.
2018-07-13 15:43:55 +01:00
baldurk e8e7aea693 Fix off-by-one character error in immediate mode GL text rendering 2018-07-12 15:33:54 +01:00
baldurk b0378e9858 Don't try and fetch fbconfig for NULL context in glXMakeCurrent 2018-07-12 15:33:54 +01:00
baldurk 64006a856c Register library hook even if callback is NULL. Refs #1040 2018-07-12 15:33:53 +01:00
baldurk fd5612e30a Change RENDERDOC_HOOK_EGL to a runtime option on an env var
* Environment variables are not user-friendly, but I don't want to promote this
  to a capture option since it's so niche.
* In future perhaps  it will be feasible to support selecting an arbitrary API
  to capture, or even capturing multiple APIs simultaneously - though with GLES-
  on-GL that will be quite difficult.
2018-07-12 15:33:53 +01:00
baldurk 7670c125c0 Fix EGL order-of-operations on windows
* On windows we can load libEGL which then loads opengl32.dll, so we ensure that
  opengl32.dll is loaded first at startup rather than have it appear last-minute
  in a recursive call.
* Likewise, when using EGL we forcibly forget all GL function pointers and fetch
  them through eglGetProcAddress, rather than having a mix-and-match dispatch
  table.
2018-07-12 15:33:52 +01:00
baldurk ec81a0329a Fix original pointers not being fetched for modules fetched last-minute 2018-07-12 15:33:52 +01:00
baldurk 15bb970dd9 Don't try to create indirect draw buffer while structured exporting 2018-07-12 15:33:51 +01:00
baldurk ba78e08394 Fix crash if VkImportMemoryWin32HandleInfoKHR::name is NULL 2018-07-12 15:33:51 +01:00
baldurk 57f2cabc9b Initialize device properties that might not all be filled out to 0 2018-07-12 15:33:50 +01:00
baldurk d72cfa58c7 Ensure we unwrap pNext chain on replay in vkQueueSubmit 2018-07-12 15:33:50 +01:00
baldurk 85cddfff07 Fix display calculation overflowing for large scrollbars 2018-07-12 15:33:50 +01:00
baldurk 3c7287cead Set driver for hooks earlier on WGL 2018-07-11 19:32:16 +01:00
baldurk b955ef0b52 Support a NULL window for functions that only need it for dialogs
* Primarily useful for Python where threading can cause problems, and there's no
  need.
2018-07-11 19:32:16 +01:00
baldurk 64c6c1affc Check for eglQueryString returning NULL
* This seems to happen sometimes during early startup on Android.
2018-07-11 19:32:15 +01:00
baldurk 504ebe5a1a Fill in compute shader inputs (thread/group ID variants). Refs #1038 2018-07-10 14:53:35 +01:00
baldurk e50c6436a2 Fix crash if debugging pixel shader without EvaluateAt* operations 2018-07-10 14:53:34 +01:00
baldurk ac4bd2c6a2 Add GL ES on windows to supported APIs in readme
* Requires either driver support (EXT_create_context_es2_profile) or a GLES
  emulating library like ANGLE.
* Note however that ANGLE doesn't at this point meet the minspec for replay, so
  it can only be captured from.
2018-07-09 17:04:00 +01:00
baldurk e976c0621f Linux compile fix 2018-07-09 17:04:00 +01:00
baldurk b00f62b976 Remove MaxImageAttachments on RP/FB, dynamically size. Closes #1033
* Render passes and framebuffers can have as many attachments as desired, and
  just use a small subset in each subpass. We shouldn't add an artificial limit
  without good reason.
2018-07-09 16:28:03 +01:00
baldurk 650a80db47 When searching start at selected not current event. Closes #1030
* When selecting a marker region, the more intuitive search is to find children
  of the marker first before searching onwards, even if the 'current event' is
  at the end of the marker region.
2018-07-09 16:28:03 +01:00
baldurk 3b05409eff Re-use glClear bitfield stringise for glBlitFramebuffer 2018-07-09 16:28:02 +01:00
baldurk 83355c521e Don't specify cache as derived resource if it's non-existant 2018-07-09 16:28:02 +01:00
baldurk 3acb726ed1 Specify the right texture target creating backbuffer depth/stencil 2018-07-09 16:28:01 +01:00
baldurk ad4f3ac864 Fix error message for unhandled format in GetByteSize 2018-07-09 16:28:01 +01:00
baldurk 1c510cb3a3 Don't crash if RemoteHost hostname is empty or short 2018-07-09 16:28:00 +01:00
baldurk 8c93750b00 Fix crash if texture tabs were open when restoring state. 2018-07-09 16:28:00 +01:00
baldurk 45a36c52e1 Limit recursion depth for IsUnmodified check
* We won't inline 10 levels of statements anyway, so there's no point in
  exponentially searching for inline candidates.
2018-07-09 16:27:59 +01:00
baldurk e334c805f8 Keep going after finding a specialization constant match
* It's perfectly valid to have the same ID fill out multiple variables.
2018-07-09 16:27:59 +01:00
baldurk 7ca23e7a87 Set all mips to valid when GenerateMipMaps is called 2018-07-09 16:27:58 +01:00
baldurk 30c8f01a25 Handle implementations on capture without ARB_vertex_binding 2018-07-09 16:27:58 +01:00
baldurk eff35de81b Handle case where an implementation can't readback 'native' format/type
* Sometimes a GLES implementation can refuse to copy back the 'native'
  format/type, most commonly if you want to read back from a GL_RGB texture it
  might require you to readback GL_RGBA.
* We handle this by just reading back the requested format in this case, and
  then copying only RGB tightly into the output buffer.
2018-07-09 16:27:57 +01:00
baldurk f2a2710823 save 'type' parameter as hint to internalformat
* Unfortunately it seems like sometimes in GL when creating an GL_RGB
  internalformat texture you can copy from another GL_RGB internalformat
  texture. Other times you can't.
* In particular the difference can just be the 'type' parameter passed when
  passing initial data, GL_UNSIGNED_BYTE vs eGL_UNSIGNED_SHORT_5_6_5
* We treat this as a 'soft' hint, so if it's not present we fall back to the old
  path.
2018-07-09 16:27:57 +01:00
baldurk 14cb449886 Support EGL_ANGLE_surface_orientation flipped backbuffers 2018-07-09 16:27:57 +01:00
baldurk 00985986d1 Implement missing stub on apple 2018-07-07 01:13:08 +01:00
baldurk 4e57f295b7 Disable GLES support on mac 2018-07-07 00:38:27 +01:00
baldurk ff61bf8def Fix case when GLES is enabled but GL is disabled on linux, or vice-versa 2018-07-07 00:00:04 +01:00
baldurk e5f6b24696 Declare proper calling convention for EGL hooks 2018-07-07 00:00:03 +01:00
baldurk c49888424f Disable GLES compilation for docs build 2018-07-07 00:00:03 +01:00