Skip to content

shader: treat uniform-address LDS reads as lane-uniform - #107

Open
VastyViz wants to merge 1 commit into
Zettrox:mainfrom
VastyViz:shaders/lane-uniform-lds-read
Open

VastyViz wants to merge 1 commit into
Zettrox:mainfrom
VastyViz:shaders/lane-uniform-lds-read

Conversation

@VastyViz

Copy link
Copy Markdown

lane_uniform already documented values loaded from uniform addresses, but only matched Fields::Valu. Plain unguarded ds_read* instructions (excluding addtid and partial-register _d16 variants) reading a uniform LDS address produce the same value in every active lane; lds_meetings already forbids mixing reads and writes inside a lane-branch region and places group barriers around it.

Also bound non-relative vector and scalar operand reads in lane_uniform to each operand's exact register range so a previously divergent destination VGPR does not mask uniformity on an unguarded overwrite, while preserving the open-ended check for v_movrel* and v_swap*.

Unblocks the remaining 3 BVH builder compute shaders on 32-lane hosts (52/52 emitted, validated, and pipeline-created).

lane_uniform already documented values loaded from uniform addresses, but only matched Fields::Valu. Plain unguarded ds_read* instructions (excluding addtid and partial-register _d16 variants) reading a uniform LDS address produce the same value in every active lane; lds_meetings already forbids mixing reads and writes inside a lane-branch region and places group barriers around it.

Also bound non-relative vector and scalar operand reads in lane_uniform to each operand's exact register range so a previously divergent destination VGPR does not mask uniformity on an unguarded overwrite, while preserving the open-ended check for v_movrel* and v_swap*.

Unblocks the remaining 3 BVH builder compute shaders on 32-lane hosts (52/52 emitted, validated, and pipeline-created).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant