Repository navigation
Runtime: trace graphics descriptor setup before draws - #1907
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
Conversation
Show whether callers attempted to set graphics descriptor tables or shader-visible heaps before the first draw.
Serrambi
approved these changes
Nov 22, 2026
Serrambi
left a comment
Contributor
There was a problem hiding this comment.
Reviewed 6531d9c6 and tested on Windows 11 Pro (MSVC 19.50.35719.0, Ninja RelWithDebInfo): approve.
runtime/shims/d3d12_com.cpp:SetDescriptorHeapslogs"ignored"(consistent with the existing comment that direct heap indexing is still unimplemented) andSetGraphicsRootDescriptorTablerecords"called"viad3d12_trace::record.runtime/test/d3d12_gcl8_test.cpp&runtime/test/check_d3d12_trace.py: exercises both calls beforeDrawInstanced/DrawIndexedInstancedon an unconfigured list and asserts the exact sequence in the trace output.- Checks:
d3d12_gcl8_test.exe(EXIT=0) andctest --test-dir runtime/build --output-on-failure -R "^(d3d12_gcl8|d3d12_trace)$"passed 2/2.
Contributor
|
Tested 6531d9c, merged onto
The change reads right to me: both methods only add a AI-assisted (Claude Code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: graphics descriptor setup trace
What and why
Log whether a command list reached
SetDescriptorHeapsandSetGraphicsRootDescriptorTablebefore it attempted a draw. The trace reportsignoredfor the heap call because this runtime still treats it as a no-op. The table call uses the existingcalledstatus, including when the binding is invalid. The entries carry only the method name and status.Tested
6a6704df. With the fixture and assertion alone,d3d12_tracefailed on the missingSetDescriptorHeapsentry.ctest --test-dir build-review -R "^d3d12_(gcl8|trace)$" --output-on-failurepassed both tests. The Python trace checker verified 16 ordered entries and silence when tracing is disabled.python -B -I tests/test_ctest_registration.pypassed all three tests. No GPU run.Checklist
docs/design.md, with how it was confirmed. (Runtime trace only.)AI-assisted.