Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do run DCE if SPV_KHR_ray_query is used. #4047

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

ehsannas
Copy link
Contributor

@ehsannas ehsannas commented Dec 2, 2020

When support for KHR_ray_query and KHR_ray_tracing landed in SPIRV-Tools, it missed adding ray_query to acceptable extensions for DCE.

Fixes microsoft/DirectXShaderCompiler#3287

@ehsannas ehsannas self-assigned this Dec 2, 2020
@ehsannas
Copy link
Contributor Author

ehsannas commented Dec 2, 2020

Will wait for the bots to go green

@dnovillo dnovillo merged commit 10e0ae7 into KhronosGroup:master Dec 2, 2020
MarijnS95 added a commit to MarijnS95/SPIRV-Tools that referenced this pull request Dec 4, 2020
Similar to [1] DCE should be ran when this extension is enabled to
prevent unused bindings from showing up (in particular atomic counters
attached to buffers).

[1]: KhronosGroup#4047
s-perron pushed a commit that referenced this pull request Dec 7, 2020
Similar to [1] DCE should be ran when this extension is enabled to
prevent unused bindings from showing up (in particular atomic counters
attached to buffers).

[1]: #4047
MarijnS95 added a commit to MarijnS95/DirectXShaderCompiler that referenced this pull request Jan 19, 2021
KhronosGroup/SPIRV-Tools#4047 enabled DCE for
vk::ReadClock which we're using. Without this patch unused bindings for
atomic counters attached to buffers show up.
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.

[SPIR-V] Atomic counter emitted when combining RWStructuredBuffer and RayQuery
2 participants