startup: exercise the pixel-history hook through the real translated draw path #2843
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2843
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?
@lambirou on GitHub · 2026-11-26 13:20 UTC · original
Context
#2828 added the bounded per-draw texel history (X2W_DRAW_DUMP_PIXEL with X2W_DRAW_DUMP_FRAME). The merged fixture startup_pixel_history covers the report format, the RGBA/BGRA decode and the source-built 3-draw control. It does not run draw_dump_after or draw_dump_flush in src/startup_stubs/d3d12_draw.inl.
tedin7's review of #2828 named the gap: a break in the runtime side (ignoring the one-texel box, misparsing the environment, skipping the 48-copy bound) would not turn the test red. The current negative control only omits draw 2 from the report list, so it guards the report and decode, not the runtime hook.
Proposed fixture
Drive the real translated draw path with the environment set:
Controls:
Why it matters
The feature is intended to answer "which draw changed this pixel" on a real frame. The report logic is proven; the hook that feeds it still has no end-to-end test.
Related: #2828, #1268.
@stan495 on GitHub · 2026-11-26 13:40 UTC · original
Claiming this issue.
Plan:
startup_stream_consumer(tests/startup_stream_draw.cpp/tests/startup_stream_consumer.cpp) using a guest-wrapped render target (create_committed, device slot 76) andqueue_present(queue slot 32) onX2W_DRAW_DUMP_FRAME=1,X2W_DRAW_DUMP_PIXEL, andX2W_DRAW_DUMP_DIR.tests/startup_pixel_history_draw_check.py) registered for WARP and hardware (usingstartup_stream_consumer+gfx2hlsl.py) that verifies:queue_presentadvancesframe_numberto1; a translated green triangle scissored to(2, 1, 6, 3)over an8x4blue-cleared guest target runs; secondqueue_presentflushespixel_history.txtwithdraw=1 frame=1 x=3 y=2, non-zerokey=, andrgba=0,255,0,255.X2W_DRAW_DUMP_PIXELleavespixel_history.txtabsent and writes the full-target BMP; watching off-target out-of-bounds8,4writes nopixel_history.txt; watching target origin0,0reportsrgba=0,0,255,255(distinct from(3,2), proving origin copy vs box copy).AMD Radeon RX 7900 XTX), plus the origin-box mutant test againstd3d12_draw.inllocally before pushing.