Repository navigation
d3d12: expand IA-selected rectangles on triangle-family PSOs (RT-IA-RECTANGLE-VARIANT) - #722
Conversation
…ida#682 Carry only runtime/src/rect_list_geometry.h, byte-for-byte from 6aa8eb1. The stage generator and its original commits are by tedin7 (ProjectLeonida#207, carried forward in ProjectLeonida#682). This makes the draw-time change buildable against main while the explicit rectangle/quad work is in review.
Select the geometry-stage variant when the input assembler requests an Xbox rectangle and cache it alongside the attachment-format variants. Keep a shared snapshot of the linked vertex program for that draw. Exercise alternating rectangle and triangle draws through the same PSO and compare the complete target after each switch.
abnalstlll-byte
left a comment
There was a problem hiding this comment.
LGTM. Excellent GPU-level emulation of Xbox rectangle lists (topology 17) via geometry-stage expansion on triangle-family PSOs (
ect_list_geometry.h). Verified with translated draw pixel tests in d3d12_translated_draw_test.cpp and documented in docs/d3d12_vulkan.md.
|
Independent native Windows pixel check on RTX 3060 Ti (driver 610.88, Windows 11 build 26100, MSVC 19.44, Khronos Vulkan validation 1.4.369). I used the same
The merge was clean (tree This covers the IA-selected rectangle variant with #511 enabled, using synthetic inputs. AI-assisted. |
…first-run UI Build on the public frame-loop integration in #321. Carry the texture-view and depth work from #213 and #261, the layout provider from #461, the responsive window from #526, and the rectangle generator from #682. Integrate the Xbox constant-buffer row addressing measured in #513 and the draw-time rectangle selection in #722. Keep all fixtures synthetic. The Windows GPU path resolves title-owned shader objects, retires geometry uploads per submission, materializes texture views on use, maps linear surfaces, and delivers completed GPU label writes. A first-run UI launch selects the tested settings for these paths.
…published renderer fixes Use the tagged pipeline variants and indexed quad expansion from #722 and #682 with the shared shader cache. Retain title-backed index uploads, cross-queue scratch sharing, amd64 console return conventions and the PC/console caller discriminator. The local shader build indexes native containers and includes the executable's embedded stages.
Claimed in the coordination issue as: RT-IA-RECTANGLE-VARIANT (claim).
Depends on: #682
What and why
The first-run UI compositor binds a triangle-family graphics pipeline, then selects Xbox rectangle-list topology (17) on the input assembler. The three submitted corners drew one triangle. In a 3840 × 2160 pass, this left half the output untouched.
Replay now selects a pipeline variant with a generated geometry stage for that draw. The variant cache distinguishes rectangle expansion and the unbound attachment mask. Triangle draws on the same PSO keep their original pipeline. PSOs with the same linked vertex program share the snapshot used to build the geometry stage on first use.
The first commit carries only tedin7’s geometry generator from #207 / #682, byte-for-byte, so this can build against current main. The second commit contains the draw-time selection and its regression. The explicit type-19 PSO and quad-list implementation are tracked in #682.
Tested
51f316092with the new synthetic GPU test fails at pixel (0, 32) on the first rectangle draw. On this branch, the same PSO alternates rectangle and triangle draws twice. All 4,096 target pixels match on each frame. The regression also passes with the Khronos validation layer and synchronization validation enabled. Runctest --test-dir <build> -C RelWithDebInfo -R ^d3d12_translated_draw$ --output-on-failureon a Vulkan-enabled Windows runtime build.d3d12_vulkan_devicefailure reproduced on clean main on this adapter, with identical HRESULT differences for committed-resource flags0x200and0x400.llvm-mcwith a backslash-delimited Windows path passed all nine tests when rerun with a forward-slashLLVM_MCpath. Viewer streaming passed 57/57 and documentation links passed 16/16.git diff --checkpass. Local merge checks against current main and OLD-9940: draw Xbox rectangle and indexed quad lists as triangles #682 are clean.GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 x64 build 26200 (MSVC RelWithDebInfo).
AI-assisted: Yes (Codex).
Checklist
mainand merges cleanly.