Rect-list expansion for VS+PS pipelines #189
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#189
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Kalmarv on GitHub · 2026-11-23 19:47 UTC · original
I am taking a bounded, independent implementation/test pass on the rect-list gap recorded in HANDOFF.md. On main
956a476bf, console IA topology 17 is mapped to TRIANGLELIST and PSO topology type 19 to TRIANGLE; the current code explicitly renders only the first half of each rectangle.Scope: ordinary VS+PS pipelines, synthetic coverage and interpolation tests, and expansion that follows established vertex-order/provoking-vertex semantics. I will establish those semantics before choosing the expansion; no screen-space corner heuristic. Mesh/NGG and existing console geometry-shader pipelines are outside this initial scope.
Checked the current open PRs for overlapping rectangle expansion; found only contextual topology mappings in #162/#163/#170. Please flag any work coordinated elsewhere so I can avoid duplication.
No GPU result or fix is claimed yet. Planned local check: Windows / RTX 5070 Ti, synthetic inputs only, no game data. AI-assisted (Claude Code and Codex). Contribution tracking: https://github.com/Kalmarv/Leonida/issues/1
@YeetSkillet on GitHub · 2026-11-23 20:03 UTC · original
There is related downstream work. The fork author reports that depth-view and vertex/index-buffer fixes made the first menu visible on an RTX 5090. It was cut along the diagonal until build 5 expanded non-indexed rectangles. The fork documents the three positions and UVs it saw in a fullscreen pass. Build 4 result · Build 5 expansion
I used that corner order in a standalone native D3D12 test. Two runs on an RTX 3060 Ti and on WARP gave identical 64×64 RGBA8 readbacks. The pixel shader checked interpolated UV against the expected coordinate at every covered pixel.
The fixture covers one vertex order, float attributes and constant clip-space W. Provoking-vertex rules and flat attributes still need independent evidence.
A separate control held the two-triangle geometry and pipeline fixed. Copying zeroed vertices at bind time, then filling the original CPU array, produced 0 lit pixels. A fresh copy, or writing directly to the GPU-visible upload before submission, produced all 4,096. This gives a way to distinguish missing geometry from a late vertex write when investigating #186.
The available retail report gives a count of three draws per frame. An existing trace excerpt with the draw types, shader hashes, bound buffers and render-target IDs matched to the presented resource would let us identify those three individually. This test used only synthetic data.
python xcl-draw-probe.py.txt. xcl-draw-probe.py.txt@ivall on GitHub · 2026-11-23 20:58 UTC · original
Status on main: rect lists of non-indexed vertex-buffer draws are drawn whole now. The CPU expansion from #195 (
bind::draw_rects) makes the fourth corner as v0 + v2 - v1 per 4-byte word. Words equal in all three vertices are kept. Not covered: vertices a shader makes from the vertex index alone, and indexed draws. #199 does it with a generated GS instead and is waiting for a rebase on main. The semantics pass you describe would be useful on top of either: the provoking vertex, and whether the console's implied corner really is v0 + v2 - v1 for every vertex order.