baldurk
e4af8bcf39
Only close texture goto when focus is lost
...
* Previously this closed as soon as the mouse left the bounds.
2025-03-28 17:09:51 +00:00
Amit Prakash
00381637a7
Update GPA Integration for 4.0
...
* Use gpa session instead of gpa context for counter interrogation.
2025-03-28 17:09:32 +00:00
Amit Prakash
9b5b58225d
Update GPA 4.0 headers
2025-03-28 17:09:32 +00:00
baldurk
2d006eaa7b
Ensure newlines are stripped from command line input
...
* These can be inserted via copy-paste even though Qt says that QLineEdit only
does single line editing :(
2025-03-24 13:05:59 +00:00
baldurk
d55a1c2412
Fix GL quad overdraw overlay when using renderbuffer for depth
2025-03-24 10:57:48 +00:00
baldurk
e5f034bbba
Fix SPIR-V editing with Intel driver workaround
2025-03-24 10:43:31 +00:00
Jake Turner
c1013a1b82
Change SPIRV debugger control flow to emulate maximal reconvergence
2025-03-23 12:02:55 +00:00
Jake Turner
7ca6c741ca
SPIRV ControlFlow helper class
...
Implements maximal reconvergence
2025-03-23 12:00:57 +00:00
Jake Turner
7f4098d835
Add vk_subgroup_zoo tests for maximal reconvergence behaviour
...
Diverged threads which re-converge at expected points
2025-03-23 12:00:53 +00:00
Jake Turner
593e57f65b
DXIL debugger discard should not terminate helper lanes
...
Active lane is demoted to helper invocation which for pixel debug terminates the debug.
Non-active lanes skip over a degenerate branch if that is the next instruction after the discard.
This is a quick fix until maximal re-convergence style control flow is implemented, where quads reconverge at local uniform block
2025-03-20 15:00:37 +00:00
Jake Turner
673caa32a7
Add the input variables to DXIL debugger sourcevars
2025-03-20 13:52:21 +00:00
Jake Turner
e8665926cc
DXIL Disassembly match bindings with upperBound = -1
...
i.e.
Texture2DArray<float> resArray[] : register(t0);
2025-03-20 13:52:21 +00:00
Jake Turner
d7fa6c9df0
Improve DXIL Debugger support for cbuffer arrays
...
Resolve the cbuffer resource names correctly to show the correct data in the "Constants" view in the Shader Viewer UI
Add a cbuffer reference mapping from SSA Id handles to: constantBufferIndex and arrayIndex
Change constantBlocksDatas to be a map from a cbuffer reference to a bytebuf
2025-03-20 13:52:21 +00:00
Jake Turner
25e0612a50
Improve SSA variable name and accessed resource name for resource arrays
...
For a dynamic index resolve the name to the actual array index i.e. res2[1] instead of res2[_70 - 7]
2025-03-20 13:52:21 +00:00
Jake Turner
03b5c94144
Improve DXIL disassembly for accessing resource arrays
...
Subtract the base register away from the register to show the correct array index
2025-03-20 13:52:20 +00:00
Jake Turner
e444aff7cf
Extend D3D12_Shader_Debug_Zoo tests
...
New pixel shader for testing which does not contain resource references
Added new tests for ddx, ddy and discard
2025-03-20 13:52:20 +00:00
Jake Turner
025a6bbf86
Extend D3D12_Resource_Mapping_Zoo test to SM6 & SM6.6
...
To test the DXIL debugger and added a test of dynamic SRV array index
2025-03-20 13:52:20 +00:00
Jake Turner
dae198b39e
Extend D3D12_Draw_Zoo to SM6 & SM6.6
...
To test the DXIL debugger
2025-03-20 13:52:19 +00:00
Jake Turner
ac2da339ae
Extend D3D12_Bufer_Truncation test to SM6.0 & SM6.6
...
To test the DXIL debugger
2025-03-20 13:52:19 +00:00
Jake Turner
9163aa76c2
Add SM6.6 tests to D3D12_CBuffer_Zoo
2025-03-20 13:52:19 +00:00
Jake Turner
2dbaf739d7
Extend D3D12_Shader_Linkage_Zoo test to SM6
...
To test the DXIL debugger
2025-03-20 13:52:19 +00:00
Jake Turner
b27f5d5872
Extend D3D12_PrimitiveID test to SM6
...
To test the DXIL debugger
2025-03-20 13:52:18 +00:00
Jake Turner
506d1a1222
Minor tidyup of D3D12_Mesh_Shader python
2025-03-20 13:52:18 +00:00
Jake Turner
7eef20b3db
Added demos test VK_Mesh_Shader
...
Similar on d3d12_mesh_shader test, move some helper code from d3d12_mesh_shader python to testcase.py to allow for sharing with vk_mesh_shader python
2025-03-20 13:52:17 +00:00
baldurk
1ab434d983
Work around NV driver bug miscompiling quadSwizzleHelper() in some cases
2025-03-19 18:31:56 +00:00
baldurk
20eda2c3a2
Fix mapping calculation for array-of-structs variables
2025-03-19 18:31:56 +00:00
baldurk
b565693e15
Pass subgroup size and index through to DXIL instruction execute
2025-03-19 18:31:56 +00:00
baldurk
9bdb5bc134
Add D3D12_Subgroup_Zoo test
2025-03-19 18:31:56 +00:00
baldurk
083af09397
Expand input fetching to VS & CS when subgroup info is needed
2025-03-19 18:31:55 +00:00
baldurk
54810cc8a5
Fix thread calculation for subgroup&workgroup scope in shader debug
2025-03-19 18:31:55 +00:00
baldurk
dbb58a1179
Extract PS input fetching code into common helpers to be re-used
2025-03-19 18:31:55 +00:00
baldurk
6b0604f735
Refactor how builtins are gathered & provided for DXIL debugging
...
* Buitins can either be thread-varying or global, we pick the narrowest type to
use
2025-03-19 18:31:55 +00:00
baldurk
5914b0641d
Expand D3D input fetchers to support VS&CS and support subgroup fetch
2025-03-19 18:31:55 +00:00
baldurk
59fbd3d820
Reflect explicit wave size out of compute shaders if present in DXIL
2025-03-19 18:31:55 +00:00
baldurk
a20214452f
Prepare DXIL debugger for larger workgroup sizes
2025-03-19 18:31:55 +00:00
Tristan Ritchie
2eade4650b
Add support for VK_KHR_maintenance5
2025-03-19 15:43:08 +00:00
Remi Palandri
2b01465c79
keep driver's pipelineCacheUUID valid and use it for replay
2025-03-17 10:12:51 +00:00
baldurk
b400d4bc52
Refactor D3D ps input fetch to use quad swizzle helper
...
* Also centralises and shares more code between D3D11 and D3D12 to use the same
shader
2025-03-14 18:54:38 +00:00
baldurk
58cace21fb
Add hlsl helper for reading other lanes via derivative swizzling
2025-03-14 18:54:38 +00:00
baldurk
2322e165de
Update copyright years to 2025
2025-03-14 18:54:37 +00:00
Jasmine Hansen
ffc985a957
Fix render overlay dynamic state for VK_EXT_shader_object
...
Mirrors the pipeline modifications with dynamic state for Highlight Draw, Depth, Stencil, Backface Cull, and Viewport Scissor
2025-03-13 21:08:32 +00:00
baldurk
add78f9904
Print more useful errors in the event of mesh output failures
...
* These may not be caused by application errors, but in the event that they are
this may be more actionable by the user - even though it's invalid API use.
2025-03-13 19:26:40 +00:00
baldurk
9b6f1a5b59
Try to generate reasonable reflection from PDB info
...
* On FXC if the user strips reflection info and uses a separate PDB, that PDB
does not contain reflection information. Try to re-generate what we can from
the PDB debug info, which is not perfect but
2025-03-13 16:45:53 +00:00
baldurk
7171eea3f9
Move scalar-offset calculating helper into common DXBC code
2025-03-13 16:17:31 +00:00
baldurk
2f6d881b8e
Only do groupshared unrolling for groupshared declarations
...
* FXC sometimes seems to emit mappings for static variables which are
nonsense/can't be used, and are also redundant against the actual information
available elsewhere. Ignore these as we could potentially expand a huge number
of mappings that are worthless.
2025-03-13 16:17:00 +00:00
baldurk
3dac15bd9d
Disable GPU Reshape
2025-03-13 14:00:09 +00:00
baldurk
9bc6174f62
Disable reshade
2025-03-13 13:59:12 +00:00
Jake Turner
e4b4cb02fc
D3D12 Pixel shader debug support for Mesh shader generated primitives
2025-03-12 13:50:36 +00:00
Jake Turner
90827deed3
Add DebugPixel to D3D12_Mesh_Shader python tests
...
Validates can do shader debugging on pixels generated by mesh shaders
2025-03-12 13:50:36 +00:00
Jake Turner
9dffc2f6c6
Do not force rebuild DXIL reflection data when starting the debugger
...
Closes #3554
2025-03-12 13:50:36 +00:00