opt: Run DCE when SPV_KHR_shader_clock is used (#4049)

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]: https://github.com/KhronosGroup/SPIRV-Tools/pull/4047
This commit is contained in:
Marijn Suijten 2020-12-07 20:42:25 +01:00 committed by GitHub
parent b27b1afd12
commit bda102d7a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -995,6 +995,7 @@ void AggressiveDCEPass::InitExtensions() {
"SPV_EXT_fragment_invocation_density",
"SPV_EXT_physical_storage_buffer",
"SPV_KHR_terminate_invocation",
"SPV_KHR_shader_clock",
});
}