Skip to content

Conversation

@jeffnn
Copy link
Collaborator

@jeffnn jeffnn commented Mar 20, 2025

The DXR invocation counting pass calls a function to add an output UAV twice. As part of adding the UAV, any DXIL-defined rootsigs will be extended to include this new UAV. If the UAV already exists in the rootsig, we should not add it again. (Doing so results in root sig that will fail validation.)

Note: the test is not a file-check style because dxil-defined subobjects don't get rehydrated into the DxilModule when the output of dxc.exe is piped into the input of opt.exe, meaning that the broken case can't be exercised.

@jeffnn jeffnn self-assigned this Mar 20, 2025
@jeffnn jeffnn requested a review from a team as a code owner March 20, 2025 21:28
@jeffnn jeffnn merged commit a13938d into microsoft:main Apr 1, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Apr 1, 2025
@jeffnn jeffnn deleted the PIX_CheckForExistingUAV branch April 1, 2025 19:55
jeffnn added a commit to jeffnn/DirectXShaderCompiler that referenced this pull request Apr 7, 2025
…icrosoft#7238)

The DXR invocation counting pass calls a function to add an output UAV
twice. As part of adding the UAV, any DXIL-defined rootsigs will be
extended to include this new UAV. If the UAV already exists in the
rootsig, we should not add it again. (Doing so results in root sig that
will fail validation.)

Note: the test is not a file-check style because dxil-defined subobjects
don't get rehydrated into the DxilModule when the output of dxc.exe is
piped into the input of opt.exe, meaning that the broken case can't be
exercised.
jeffnn added a commit to jeffnn/DirectXShaderCompiler that referenced this pull request Apr 8, 2025
…icrosoft#7238)

The DXR invocation counting pass calls a function to add an output UAV
twice. As part of adding the UAV, any DXIL-defined rootsigs will be
extended to include this new UAV. If the UAV already exists in the
rootsig, we should not add it again. (Doing so results in root sig that
will fail validation.)

Note: the test is not a file-check style because dxil-defined subobjects
don't get rehydrated into the DxilModule when the output of dxc.exe is
piped into the input of opt.exe, meaning that the broken case can't be
exercised.

(cherry picked from commit a13938d)
jeffnn added a commit that referenced this pull request Apr 8, 2025
Brings in these PRs:

#7272 [PIX] Add a pass for PIX to log missing NonUniformResourceIndex
usage into a UAV.
#7238 [PIX: Check for existing PIX UAV in roots sigs before adding it
again.

---------

Co-authored-by: nopandbrk <202358470+nopandbrk@users.noreply.github.com>
Co-authored-by: Chris B <cbieneman@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants