shader: lower v_xad_u32 and v_log_f32 in the mesh frontend #3905
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#3905
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-12-03 00:35 UTC · original
Problem
The 3 December work split on #3705 leaves A1 (small ALU) open:
v_xad_u32is the first refusal for 66 mesh programs,v_log_f32for 37, andds_swizzle_b32for 17. The two former already have lowerings in the shared compute ALU; the native mesh frontend simply did not admit them.Change
v_xad_u32(VOP30x345) to the mesh vector list. It takes three sources and lowers to(S0 ^ S1) + S2modulo 2^32, matching the compute frontend.v_log_f32(VOP10x27) to the same list. It evaluates DXIL Log (dx.op.unary.f32, opcode 23) through the shared float ALU.ds_swizzle_b32refused for now; a general lane-swizzle exchange is a separate design.Tests
tests/native_direct_mesh_check.pyadds source-built programs:v_xad_u32 v1, v0, s20, s21withs20 = 0x0000ffffands21 = 0x00ff0000emitsxor i32 %v0, 65535thenadd i32 %xor, 16711680, exported through POS0.x. An unbound third source keepsunbound numeric SGPR s24.v_log_f32 v1, v0emitscall float @dx.op.unary.f32(i32 23, ...)and exports the bitcast result.tests/docs_links_check.pypassed (258 files, 969 links).Coverage
On the issue census, the two forms clear the first refusal for 103 of the 120 A1 programs.
ds_swizzle_b32(17) stays in the bucket and will show the next refusal. This PR does not claim a new total; the census owner can rerun the capture.Refs #3705
Pull request details or commits were not available from GitHub; kept as an issue.
s_bitset1_b32, then stop at a scalar loop #3705s_bitset1_b32, then stop at a scalar loop #3705s_bitset1_b32, then stop at a scalar loop #3705s_bitset1_b32, then stop at a scalar loop #3705