Commit Graph
17444 Commits
Author SHA1 Message Date
James Sumihiro bc8c83b4e9 Add support for VK_EXT_shader_object to FetchShaderFeedback 2026-10-09 21:32:59 +09:00
Wang, Xiong 61a81af880 Release Python callback arguments in the destructor
Keep the argument tuple owned by varfunc for its full per-call lifetime.
ConvertFunc destroys varfunc before ScopedFuncCall, so the tuple is released
exactly once while the GIL is still held, including failed callbacks.
2026-10-09 21:32:37 +09:00
Wang, Xiong c3548cd16a Fix Python callback reference counting and shutdown cleanup
Clear the argument tuple after calling a Python callback so varfunc's
destructor cannot decrement it a second time. This prevents repeated
zero-argument callbacks from losing references to the shared empty tuple.

Skip callback reference cleanup after Python has shut down, since Qt can
destroy pending callback closures during QApplication teardown.

Validation:
- Regression harness using this header and bundled Python 3.6.4: 20,000
  callbacks with balanced references, nonempty arguments, exception paths,
  deferred release, and callback destruction after Py_Finalize.
- Windows x64 Release build: no warnings or errors.
- MI 8 remote replay: 1.rdc -> 2.rdc -> 1.rdc -> 2.rdc; normal exit with
  a pending callback, exit code 0.

Build and device checks used the existing development checkout, which also
contains separate local changes excluded from this commit.
2026-10-09 21:32:37 +09:00
baldurk 37c2395138 Don't leak Truncated flag for spec constants when filling values 2026-10-08 21:43:55 +01:00
baldurk c3b5920471 Allow bindings in shader feedback that do not exist in descriptor sets
* In some cases for resources that are declared in the entry point they will be
  in reflected but it is possible that they are not statically used. For these,
  it is allowed for them to not be present in the descriptor set at which point
  we need to ignore them.
2026-10-08 16:08:16 +01:00
Jake Turner 4288cec631 Do not validate ShaderVariable before/after for ConstantBlock types 2026-10-08 10:58:18 +01:00
Jake Turner 591e765bea Change MakeCompositePointer to take a const array of indices 2026-10-08 10:57:53 +01:00
Jake Turner f5f8f8f652 Include array index when sorting resources in Vulkan Pipeline View 2026-10-08 10:55:26 +01:00
Jake Turner 4924d00db0 Set system paths in local_pcre build for autoreconf
- Fixes building from Xcode
2026-10-07 06:00:15 +01:00
Jake Turner 15c73df694 Changes to Metal protocols to support MacOS SDK 27.0 2026-10-07 05:59:50 +01:00
baldurk 2cb0a87d6a Don't require sampled feature for 64-bit integer formats
* Normally we require this for display, but we can't display these formats. On
  many drivers sampling is not supported so this would force the whole format to
  be unsupported, but due to shaderImageInt64Atomics we can't do that.
2026-10-06 13:58:35 +01:00
baldurk 6b0eb1f7f4 Be explicit that 64bit integer textures can't be displayed. Closes #3918 2026-10-06 13:58:34 +01:00
Jake Turner e2b85b4622 Update the VK_Shader_Debug_Zoo tests for arrayed resources
- Access queryTests, queryTestsMS element one instead of zero
- add tests for texBuffers, storeTexBuffers
- initialize arrayed resources descriptors to bad values
- set the accessed array indices to good values
2026-10-06 08:44:43 +01:00
Jake Turner d4253c2618 Change Mac github runner to macos-15 2026-10-06 06:32:45 +01:00
Jake Turner 66d008ecd0 Changes to Metal protocols to support MacOS SDK 15.0 2026-10-06 06:32:41 +01:00
Jake Turner 6597049558 Add #define for calcoffset() to fix Apple clang compile error
- offset of on non-standard-layout type -Winvalid-offsetof
2026-10-06 06:32:34 +01:00
Jake Turner 6906fce2be Fix Apple compile errors from -Wnontrivial-memcall
- first argument in call to 'memset' is a pointer to non-trivially copyable type 'MetalInitialContents'
2026-10-06 06:32:26 +01:00
Jake Turner e3c71e6e13 Fix Apple xcode path capitalisation to match disk 2026-10-06 06:32:05 +01:00
baldurk 14b5863046 Add misisng stringise for VkStructureType
* This wasn't included accidentally in last header bump.
2026-10-05 12:55:27 +01:00
Student Main 662623da68 Fix LoongArch BREAK instruction encoding 2026-10-05 20:16:53 +09:00
Jake Turner 4c07524147 Improve support for resource array display in Shader Debugging UI
- Use Shader feedback to get the accessed resource array index
- Use Shader feedback to show accessed elements in unbounded resource arrays

Before

tex1    [128]
tex1[0] _100[0] Resource Colour Tex
tex1[1] _100[1] Resource Black Tex

inbuf _166[unbounded] [unbounded]

tex2 _208[unbounded] [unbounded]

tex3    [3]
tex3[0] _221[0] Resource Colour Tex

After

tex1    [128]
tex1[4] _100[4] Resource Colour Tex
tex1[19] _100[19] Resource Black Tex

inbuf    unbounded
inbuf[15] _166[15] RW Resource Buffer 171

tex2    unbounded
tex2[381] _208[381] Resource Colour Tex
tex2[386] _208[386] Resource Colour Tex

tex3    [3]
tex3[1] _221[1] Resource Colour Tex
2026-10-02 14:25:14 +01:00
Jake Turner 9f12bf79a3 Allow spirv shader debugging for unbounded SSBOs 2026-10-02 14:25:14 +01:00
baldurk 0db41a0cde Don't use != in rdcpair as not every struct will implement it
* We can use !(a == b) instead for the same effect as we assume an equality
  operator.
2026-10-02 14:22:16 +01:00
baldurk 5b666aebef Improve autocomplete over rdcarray variables
* Anything obtained via the aliased interfaces will act as if it's a List[], but
  any globals from the repl will be rdcarray typed so we need to handle looking
  up the 'real' type for that.
2026-10-02 14:22:16 +01:00
baldurk e189be893c Unwrap/ignore optional for purposes of autocomplete 2026-10-02 14:22:15 +01:00
papalqi 42e52b48a3 vulkan: work around Qualcomm opaque capture address ordering bug
On some Qualcomm drivers (observed on Adreno 740, Xiaomi 2304FPN6DC,
Android 16) vkAllocateMemory returns an address different from the
requested opaque capture address when the pNext chain lists
VkMemoryOpaqueCaptureAddressAllocateInfo before
VkMemoryAllocateFlagsInfo carrying
VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT. The allocation
itself succeeds, so replay only fails later at the post-allocation
address equality check ("opaque address 0x%llx has changed on replay").

A standalone NDK Vulkan probe that replays the captured allocation
sequence without any RenderDoc layer involved deterministically
reproduces the wrong address with the captured chain order, and gets
all addresses matching when the two structures are swapped. pNext
chain order is not supposed to affect behaviour, so this is a driver
bug.

Move the existing VkMemoryAllocateFlagsInfo node to the head of the
chain when the new QualcommBrokenOpaqueCaptureAddress driver
workaround is active, immediately before AllocateMemory. The captured
address, flags, and all other chain nodes are left untouched, and the
existing address equality check still applies. The workaround only
triggers when both structures are present, a non-zero opaque address
is requested, and the flags node is not already first, so unrelated
captures are unaffected. The flag is enabled unconditionally for
Qualcomm for now as the fix version is unknown, matching the other
Qualcomm workarounds.

Validated on the original failing capture: remote replay of a
33 MB frame that previously failed the address check now opens in
~2.7 s and replays through Present with matching addresses.
2026-10-01 19:01:11 +09:00
Triang3l 894e51ccf2 Support null vertex/index buffers in D3D12 ExecuteIndirect
According to the D3D12 debug layer, setting either BufferLocation or
SizeInBytes to 0 in IASetVertexBuffers and IASetIndexBuffer commands
causes a null view to be bound, with the rest of the VBV/IBV description
structure being ignored.

In particular, this means that a BufferLocation of 0 must be supported
by RenderDoc, and also if SizeInBytes is 0, BufferLocation may be an
invalid address, so it must be ignored.

This change disables the resource lookup for null VBVs and IBVs.

Additionally, if the application has provided an invalid address for a
non-null VBV or IBV, it's replaced with a null view now instead of
passing the original address from the application through.
2026-10-01 10:29:42 +01:00
baldurk 91ea80af1d Display evaluated assertion expression if present 2026-09-30 12:29:31 +01:00
baldurk d3555c51af Use move helper for rdcarray move append
* This makes a big difference for move-appending basic types like bytes or ints
2026-09-30 12:29:31 +01:00
baldurk c63d957359 Fix fetching extra buffer data if fixed range is larger than clamp size 2026-09-30 12:29:31 +01:00
baldurk 2e32b910dd Ignore empty dxbc extended operands 2026-09-28 10:31:37 +01:00
Jake Turner d842e0240c Set Matrix and ArrayStride to Typed Pointers Closes #3914
- set both to known pointers
- set array stride to opaque pointers (matrix stride was already set)
2026-09-28 09:24:32 +01:00
Jake Turner 6653194e69 Add a test to load through a bda pointer array to a member of a struct
OuterStruct { float4 a; float4 b; InnerStruct* pInner; }
InnerStruct { float x; float y; float z; }

OuterStruct is BDA in push constants
Code Access is OuterStruct->pInner[1].x
2026-09-28 09:11:14 +01:00
Jake Turner 54f92c222a Add DXIL Debugger support for LEXICAL_BLOCK_FILE 2026-09-23 14:17:42 +01:00
Jake Turner cbcba5a438 Add DXIL DebugInfo support for LEXICAL_BLOCK_FILE 2026-09-23 14:17:42 +01:00
Jake Turner 391227ea7b Add DXIL bitstream parsing support for LEXICAL_BLOCK_FILE 2026-09-23 12:53:06 +01:00
Jake Turner b299a12234 D3D12_Execute_Indirect: fix GPUVA Errors 2026-09-22 16:02:53 +01:00
Jake Turner ad5ea9973d D3D12 ApplyState when IB/VB resource is missing set NULL resource
- IB is always set to NULL if the application didn't set a valid IB
- VB is set to NULL if the application VB resource does not resolve
2026-09-22 13:31:32 +01:00
Jake Turner 83de1c287a Spirv debugger update behaviour of clustered subgroup instructions 2026-09-21 16:45:20 +01:00
Jake Turner b94e5ca171 Spirv debugger implement builtins for subgroup masks
- SubgroupEqualMask
- SubgroupGreaterEqualMask
- SubgroupGreaterMask
- SubgroupLessEqualMask
- SubgroupLessMask
2026-09-21 16:29:33 +01:00
Jake Turner b29e2cc987 Extend test coverage in Vk_Subgroup_Zoo
- gl_NumSubgroups
- gl_SubgroupID
- gl_SubgroupEqMask
- gl_SubgroupGeMask
- gl_SubgroupGtMask
- gl_SubgroupLeMask
- gl_SubgroupLtMask
- subgroupBallotInclusiveBitCount
- subgroupInverseBallot
- subgroupShuffleXor
- subgroupShuffleUp
- subgroupShuffleDown
- subgroupInclusiveAdd
- subgroupInclusiveMul
- subgroupInclusiveMin
- subgroupInclusiveMax
- subgroupInclusiveAnd
- subgroupInclusiveOr
- subgroupInclusiveXor
- subgroupExclusiveAdd
- subgroupExclusiveMul
- subgroupExclusiveMin
- subgroupExclusiveMax
- subgroupExclusiveAnd
- subgroupExclusiveOr
- subgroupExclusiveXor
- subgroupClusteredAdd
- subgroupClusteredMul
- subgroupClusteredMin
- subgroupClusteredMax
- subgroupClusteredAnd
- subgroupClusteredOr
- subgroupClusteredXor
2026-09-21 16:22:24 +01:00
Jake Turner cfa80924ef Extend test coverage in Vk_Workgroup_Zoo
- gl_SubgroupEqMask
2026-09-21 16:22:21 +01:00
Jake Turner a8270f72d7 Vk Tests make the parent tmp/ directory of the temporary directory 2026-09-21 16:21:35 +01:00
Jake Turner be2676ff56 Improve VK_Subgroup_Zoo tests
- compute any bitmasks using subgroupBallot() outside of flow control
- add tests for subgroupBallotBitExtract, subgroupBallotFindLSB, subgroupBallotFindMSB
2026-09-18 14:02:55 +01:00
baldurk 755ab657ef Pass visible range through to custom shaders consistently 2026-09-18 12:10:41 +01:00
baldurk beb55351df Apply texture visible range before conversion from int. Closes #3911 2026-09-18 12:10:41 +01:00
baldurk 590d5dea3e Fix self capturing 2026-09-18 12:10:41 +01:00
Jonas Rock ccb51b11dc Fixed Subgroup ballot operations with inactive invocations
As far as I can see, OpGroupNonUniformBallotBitCount,
OpGroupNonUniformBallotBitExtract, OpGroupNonUniformBallotFindLSB
and OpGroupNonUniformBallotFindMSB all work directly with the
ballot value without filtering the bits for active lanes
(https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpGroupNonUniformBallotBitCount).

With Nvidia 610 drivers this can also be confirmed by printing the
shader values. This should hopefully fix these operations.
2026-09-18 11:55:52 +01:00
baldurk 6b9cec797d Add signal when python extensions are changed
* This avoids repeatedly hitting disk to enumerate current extensions for UI
  updates.
2026-09-17 11:44:07 +01:00
baldurk ac902dc08a Only log once about extensions that require an incompatible version 2026-09-17 11:44:07 +01:00