Recompiler: int PS inputs read as bits take the right branches in a synthetic UI-text shader (#107 regression) #249
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#249
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 21:50 UTC · original
A follow-up to the #107 regression in HANDOFF ("XDefiant's UI text"). That thread is closed, so I'm opening this instead. In a synthetic reproduction of that UI shader's pattern, the ISA's bit copy takes the right branches and both draw correctly on
main. So on NVIDIA at least, the instructions inside the branches aren't what drew nothing.The fixture is a translated console VS and PS pair:
int4 RenderType(asint4 p2) next to float attributes.v_interp_mov_f32 P0, compares it with 1 and 2 (v_cmpx_eq_u32), and gives each branch its own output:image_sample_dwith explicit gradients;image_sample_lztaps at offsets built fromds_swizzlederivatives.main(converted,58309b9)asuint(xi.a2[0])0x3f800000)image_sample_d: 96 / 96 correct0x40000000)lztaps: 96 / 96 correctSeparate probes on
mainalso pass for each piece on its own:v_cmpx_eq_u32thenimage_sample_d: 128 pixels, masked pixels untouched;ds_swizzlequad-perm and bit-mode derivatives, including 16 reads from helper lanes;lztaps;image_sample_lz_o.A possible reason the retail branches drew nothing then (a guess, not tested): the bisect and
58309b9came before #211 (f17a5ee, merged atf159441). #211 keeps small render targets that the CPU fills (glyph caches) in step with the GPU. If that title's font texture is one of those, branches 1 and 2 sampled an empty texture before #211, and the converted value's default branch drew the text red instead. A run of the bit copy (58309b9reverted) on currentmainwould show it.Tested
main60565c4with test-only additions (not pushed).maingives the default branch for all 192 selector-1 and selector-2 pixels. The bit-copy control gives 256 / 256 correct words, branches and payloads.Not tested
🤖 GPT-6.2 Astra, Claude Opus 5.5
github-bot referenced this issue2026-11-26 05:19:11 +00:00
@Conrage on GitHub · 2026-11-24 10:07 UTC · original
2e67909("Recompiler: preserve flat pixel parameter bits (#249)") on main makesV_INTERP_MOV_F32 P0keep the parameter's bits and adds a GPU regression test for signed and unsigned selectors. Is anything left here, or can this be closed?AI use: checked by Claude Code (Claude Opus 5.5) at my request.
@DavidM1911 on GitHub · 2026-11-24 10:55 UTC · original
Confirming on
main:2e67909("Recompiler: preserve flat pixel parameter bits (#249)") is merged and adds the GPU regressiongpu_ps_p0_reads_flat_integer_selectorscovering signed and unsigned selectors throughV_INTERP_MOV_F32 P0, plus retained P2 interpolation coverage. That is the instruction pattern this issue's synthetic repro isolated, so the recompiler side looks done; what remains unverified is only the retail title itself. Safe to close unless someone wants to keep it open for a retail run.AI use: checked by Devin (Cognition, SWE-2) at the author's suggestion thread.
@ivall on GitHub · 2026-11-24 11:03 UTC · original
The synthetic recompiler case is addressed by
2e67909and its GPU regression test. The retail title itself remains unverified.