Commit Graph

13194 Commits

Author SHA1 Message Date
baldurk 028d71fced Remove DENY_SHADER_RESOURCE flag in all resource creation functions 2022-06-17 18:13:06 +01:00
baldurk e15df3a75c Test that glBindProgramPipeline(0) generates no errors 2022-06-17 17:27:30 +01:00
baldurk db06aaa2de Test that recreating renderbuffers doesn't leak resources 2022-06-17 17:27:30 +01:00
baldurk 95c8a3f42e Test swizzles of UAV reads 2022-06-17 17:27:30 +01:00
baldurk 4a0bc691a7 Add test that solid/lit rendering works on points and lines 2022-06-17 17:27:30 +01:00
baldurk 71d7f000c4 Add test for D3D12 texture contents including with DENY_SHADER_RESOURCE 2022-06-17 17:27:30 +01:00
baldurk 20b496fc7a Add test of integer bare uniforms on GL 2022-06-17 17:27:30 +01:00
baldurk ef003ec881 Test depth bounds serialisation on GL 2022-06-17 17:27:30 +01:00
baldurk 46a1f90495 Disable depth bounds test when rendering GL overlay 2022-06-17 17:27:30 +01:00
baldurk fd2ae37a8b Test overlay rendering with separable shader programs 2022-06-17 17:27:30 +01:00
Danylo Piliaiev 623cd01919 Do not use inline asm for debugbreak on non i386/x86_64 targets
Fixes compilation on non i386/x86_64 Linux targets.

Don't use arch specific assembly for other architectures because
in most cases it breaks gdb ability to do next step.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
2022-06-17 17:26:16 +01:00
Jason Chen 825f1c69fe Fix typo 2022-06-17 16:09:22 +01:00
baldurk 6a006625f2 Ignore rasterizerDiscardEnable == true if it is dynamic. Closes #2617
* Normally we have to ignore subsequent states as potentially garbage pointers
  if discard is enabled, but when it's dynamic state we have to ignore its
  valid.
2022-06-17 10:46:14 +01:00
baldurk 1eee00f01d Remove unnecessary sRGB conversions 2022-06-16 16:30:00 +01:00
baldurk 0fce39ff04 Implement workaround for broken occlusion queries on Intel. Closes #2591
* If a draw has no effects (color mask writes off, no depth attachment) then
  Intel will not return proper occlusion query results. Forcibly patching in a
  storage write works around the problem.
2022-06-16 15:53:50 +01:00
baldurk 59804c1d1e When using GLES on desktop, use same API for child context. Closes #2612 2022-06-16 15:53:50 +01:00
baldurk fc39299da8 Don't require GL_OVR_multiview2 when GL_OVR_multiview is enough
* This is also all we check for in code.
2022-06-16 15:53:50 +01:00
baldurk 9f66c125df Add color attachment usage for MSAA targets for discard patterns
* In most cases we expect this to already be there, and if not it likely will
  not penalise anything in the driver since MSAA is designed for rendering to.
2022-06-16 15:53:50 +01:00
baldurk 4d8fdf4e31 Use inline asm for debugbreak on linux to remove stack frames
* raise() adds several stack frames in debug builds, and even an inline function
  will too, regardless of always_inline status.
2022-06-16 15:53:49 +01:00
baldurk f6ac09c4e1 Workaround intel mesa issue reading invalid sample locations 2022-06-16 15:53:49 +01:00
baldurk 15a99155ce Fix checks for individual features in EXT dyn state 2 2022-06-16 15:53:49 +01:00
Jake Turner 31b97ab0e8 Updated TODO: about BinaryArchive & DynamicLibrary
They will both need to be wrapped.
When WrappedMTLBinaryArchive and WrappedMTLDynamicLibrary exist then can serialize:
binaryArchives
vertexPreloadedLibraries
fragmentPreloadedLibraries
2022-06-15 13:02:27 +01:00
Jake Turner 22b2272812 Added wrapped MTLBuffer 2022-06-15 13:02:27 +01:00
baldurk 85af87c231 Fix unused variable warning 2022-06-14 20:38:43 +01:00
baldurk 7142bf16e0 Handle non-infinite arrays of UBOs in vulkan shader debugging 2022-06-14 18:36:33 +01:00
baldurk 1e8425c3e6 Refactor handling of device/window pairs and overlay text 2022-06-14 18:05:07 +01:00
baldurk ed9ac9f7bf Add a hack flag to allow subgroup bitwise or 2022-06-09 16:56:02 +01:00
baldurk a68f9ba86a Don't use dynamic rendering when we replace with a fixed renderpass 2022-06-07 22:31:02 +01:00
baldurk 5ff8f2c4da Fix state inheritance properly for library pipelines 2022-06-07 22:22:02 +01:00
baldurk dc7d79a50a Resetting command pools should free in-flight recording pages
* Command buffers that have grabbed pages in their allocators should have those
  pages freed if the pool is reset and the command buffer is never ended.
2022-06-07 21:05:06 +01:00
baldurk c81a522360 Fix entry-point remapping when editing compute shaders on vulkan 2022-06-07 12:19:50 +01:00
baldurk e50e114cb7 Show error/unavailable status for postvs data in mesh view. Refs #2595 2022-06-06 18:35:29 +01:00
baldurk 3e9a72071d Update to latest VK and SPIR-V headers
* This also adds support for VK_KHR_fragment_shader_barycentric as a mostly in-
  place upgrade from the NV extension
2022-06-06 18:35:29 +01:00
baldurk c73c54dd6f Be more informative with 'capture incompatible' error messages on vulkan 2022-06-06 18:35:29 +01:00
Jake Turner 958e568c9d Added wrapped MTLRenderCommandEncoder
Implemented capture serialisation for APIs:
MTLCommandBuffer::renderCommandEncoderWithDescriptor
MTLRenderCommandEncoder::setRenderPipelineState
MTLRenderCommandEncoder::setFragmentTexture
MTLRenderCommandEncoder::setViewport
MTLRenderCommandEncoder::drawPrimitives
MTLRenderCommandEncoder::endEncoding

Serialisation for helper types:
MTL::PrimitiveType
MTL::LoadAction
MTL::StoreAction
MTL::StoreActionOptions
MTL::ClearColor
MTL::Viewport
MTL::MultisampleDepthResolveFilter
MTL::MultisampleStencilResolveFilter
MTL::SamplePosition
MTL::RenderPassDescriptor
MTL::RenderPassAttachmentDescriptor
MTL::RenderPassColorAttachmentDescriptor
MTL::RenderPassDepthAttachmentDescriptor
MTL::RenderPassStencilAttachmentDescriptor
MTL::RenderPassSampleBufferAttachmentDescriptor
2022-06-06 18:12:53 +01:00
baldurk c4b4c528a3 Add a testing option to step to DebugValue instructions 2022-06-02 18:18:58 +01:00
baldurk 2a97762b87 Handle indexes and partial source mapping in SPIR-V debug info 2022-06-02 18:16:30 +01:00
baldurk c625f9dbd1 Add debug option for showing DebugValue opcodes 2022-06-02 18:13:29 +01:00
baldurk 21d4d4c017 Fix debugging of SPIR-V with offsets in image sampling operations 2022-06-02 17:02:30 +01:00
baldurk fcc7eada44 Ignore whitespace when matching variable tooltip expressions 2022-06-02 17:01:48 +01:00
baldurk 3059cc6160 Fix error code for linux programs failing to run 2022-06-02 17:00:52 +01:00
baldurk c3dd785a43 Don't add source files to SPIR-V reflection with no filename 2022-06-01 21:05:37 +01:00
baldurk 77232e0288 Fix lookup of HLSL direct cbuffer variable references 2022-05-31 13:06:42 +01:00
baldurk f01dfbecc1 Add a python extension function to access picked location. Refs #2065 2022-05-31 11:26:59 +01:00
baldurk 6d7d4829ee Fix docs build on sphinx 5 2022-05-30 17:09:17 +01:00
baldurk b3e8bdb0f5 Only show base EID not EID range when exporting actions 2022-05-30 15:58:30 +01:00
baldurk 49df2e4446 Include a few more things in verbose command recording logs 2022-05-30 11:18:31 +01:00
baldurk e89cee8f09 Bump version to v1.21 2022-05-27 17:10:54 +01:00
baldurk 70676a57a4 Fix a Qt error setting layout into buffer format specifier v1.20 2022-05-27 10:44:10 +01:00
baldurk ba5f806ba1 Set constant buffer generated format as the auto format 2022-05-27 10:43:55 +01:00