Repository navigation
Conversation
…S (draws of named console pixel shaders left out) PIX and Nsight captures do not replay a title under XCL. XCL_PIXEL_HISTORY=<x>,<y>[,<s>[,<frames>]] (+ _ALSO, _SPACE, _CROP, _SLOTS): in the frames chosen, each draw on a direct list copies the texel at the point of each bound render target before and after itself (1x1 CopyTextureRegion between RENDER_TARGET <-> COPY_SOURCE transitions) into a readback buffer; a few presents later the changes are logged with the draw's console VS / PS, the target, the values decoded and the slot's blend state, and changes between two draws of a list with the dispatches in between. With _CROP a second round writes crops of the draws that changed the point. XCL_SKIP_PS=<hash>,...: draws (direct and indirect) whose translated pipeline's console PS is listed are skipped as XCL_SKIP_CS skips dispatches, counted in the log. Unset, each costs a draw one cached check. Documented in the README's diagnostics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review (head c505f08, diff read, not a merge-check; draft, checks red):
Fine: the record decoding matches the pass-through mesh shader (9-bit indices at 0/10/20, null bit 31, counts clamped as the shader does); the copy happens only on direct lists, for a single AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
The history had no hooks at the two-pass DispatchMesh and the two-pass ExecuteIndirect, so a texel they change showed up as "a clear, a copy or a resolve" or not at all. Their console shaders' hashes are now kept for it as well. Not covered: draws deferred with XCL_TWO_PASS_BATCH=2, rect draws, and indirect and mesh draws passed on untranslated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BCUJTMayV5qkgLPcQyNfr
A frame capture has no shader names for mesh pipelines, so a draw found by the history could not be found again in a capture. Its lines now name the group counts and the graphics root arguments (tables, root views and constants), which the capture has too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BCUJTMayV5qkgLPcQyNfr
The pass-through mesh shader turns a triangle with the null bit or with an index past the vertices into a point, without any message. With XCL_PIXEL_HISTORY and XCL_MESH_RECORDS, the first records of the direct two-pass draws with the named pixel shaders are copied after their mesh pass and logged: counts, triangle entries and positions. A second line per group counts the triangles that draw nothing, names the quads that are no parallelogram (one wrong corner shows) and names the triangles over the followed points with their winding. For each quad with a triangle over a followed point, a line shows its outputs after the position, by vertex where they differ (a flat input of the pixel shader comes from a triangle's first vertex). Off unless it is set; draws in several slices or with their records in halves are left out. Unit tests cover the decoding, not the GPU copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BCUJTMayV5qkgLPcQyNfr
|
Follow-up review (head 5b78630, since c505f08, diff read, not a merge-check):
New: none. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
@Prime1997 could you take a look at this one for review and merge? My automated review notes are above, if any. |
Stacked on #3640 (itself on #3509); only the top commit belongs here.
The pass-through mesh shader turns a triangle with the null bit, or with an index past the vertices, into a point without any message. With
XCL_PIXEL_HISTORYandXCL_MESH_RECORDS=<hash>,<hash>, the first records of the direct two-pass draws with these console pixel shaders are copied after their mesh pass in the followed frames and logged: counts, triangle entries, positions, the triangles that draw nothing, the quads that are no parallelogram, and the triangles over the followed points with their winding and outputs. Off unless it is set.What is in it
pixel_history.rs: the record copy, its decoding and log lines, unit tests of the decoding; each triangle is tested against the points once (triangles_over)README.md: three lines in D3D12.X: XCL_PIXEL_HISTORY (which draw writes a pixel) and XCL_SKIP_PS (leave out draws by pixel shader) #3509's paragraphTested
cargo build --workspace: ok;cargo test --workspace --no-fail-fast -- --test-threads=4(debug) on this head: 2886 passed, 1 failed, 51 ignoredgpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16. It fails the same way on D3D12.X: XCL_PIXEL_HISTORY (which draw writes a pixel) and XCL_SKIP_PS (leave out draws by pixel shader) #3509's head 8952390 without these commits (3 of 3 runs of that test alone) and comes from that branch's base, d52ff48: main has since changed the test (466b75c). It goes away when D3D12.X: XCL_PIXEL_HISTORY (which draw writes a pixel) and XCL_SKIP_PS (leave out draws by pixel shader) #3509 is rebased, and this branch with it.Regression run
main:
this PR's head:
Not tested
AI use
🤖 Generated with Claude Code
https://claude.ai/code/session_014BCUJTMayV5qkgLPcQyNfr