Skip to content

d3d12_indirect_dispatch_count: read root UAV from s4:s5 in cs_indirec… - #6564

Open
reeledMarek wants to merge 1 commit into
ItsNotRexed:mainfrom
reeledMarek:fix/indirect-dispatch-count-root-sgprs
Open

reeledMarek wants to merge 1 commit into
ItsNotRexed:mainfrom
reeledMarek:fix/indirect-dispatch-count-root-sgprs

Conversation

@reeledMarek

Copy link
Copy Markdown
Contributor

…t_dispatch_count.comp (#6162)

Fixes #6162.

#4312 (D3D-448) moved compute root arguments to start at s4 (rt::rootsig::pack_stage reserves s0..s3 for driver SGPRs) and updated cs_user_data.comp, cs_set0_sample.comp, and cs_sg_probe.comp, but left runtime/test/glsl/cs_indirect_dispatch_count.comp reading its single root UAV parameter from pc.s[0], pc.s[1].

Update cs_indirect_dispatch_count.comp to read the root UAV from pc.s[4], pc.s[5], matching the console compute layout packed by rt::rootsig::pack_stage.

Claimed in the coordination issue as:

Depends on:

What and why

Tested

AI-assisted:

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

…t_dispatch_count.comp (ItsNotRexed#6162)

Fixes ItsNotRexed#6162.

ItsNotRexed#4312 (D3D-448) moved compute root arguments to start at s4 (rt::rootsig::pack_stage reserves s0..s3 for driver SGPRs) and updated cs_user_data.comp, cs_set0_sample.comp, and cs_sg_probe.comp, but left runtime/test/glsl/cs_indirect_dispatch_count.comp reading its single root UAV parameter from pc.s[0], pc.s[1].

Update cs_indirect_dispatch_count.comp to read the root UAV from pc.s[4], pc.s[5], matching the console compute layout packed by rt::rootsig::pack_stage.
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.

d3d12_indirect_dispatch_count fails on main since #4312: cs_indirect_dispatch_count.comp still reads its root UAV from s0:s1

1 participant