From bda102d7a76e31702a887737f9b46d27478382c0 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 7 Dec 2020 20:42:25 +0100 Subject: [PATCH] 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 --- source/opt/aggressive_dead_code_elim_pass.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/opt/aggressive_dead_code_elim_pass.cpp b/source/opt/aggressive_dead_code_elim_pass.cpp index 94451a29c..81b2232f1 100644 --- a/source/opt/aggressive_dead_code_elim_pass.cpp +++ b/source/opt/aggressive_dead_code_elim_pass.cpp @@ -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", }); }