From fd547b666e5324f29eff47f2838832f273bb0fed Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 28 Oct 2019 15:44:02 +0100 Subject: [PATCH] [dxbc] Don't emit a spec constant for uniform buffers --- src/dxbc/dxbc_compiler.cpp | 8 -------- src/dxbc/dxbc_decoder.h | 1 - 2 files changed, 9 deletions(-) diff --git a/src/dxbc/dxbc_compiler.cpp b/src/dxbc/dxbc_compiler.cpp index 7742208ce..c91e97b4a 100644 --- a/src/dxbc/dxbc_compiler.cpp +++ b/src/dxbc/dxbc_compiler.cpp @@ -806,16 +806,8 @@ namespace dxvk { if (asSsbo) m_module.decorate(varId, spv::DecorationNonWritable); - // Declare a specialization constant which will - // store whether or not the resource is bound. - const uint32_t specConstId = m_module.specConstBool(true); - m_module.decorateSpecId(specConstId, bindingId); - m_module.setDebugName(specConstId, - str::format(name, "_bound").c_str()); - DxbcConstantBuffer buf; buf.varId = varId; - buf.specId = specConstId; buf.size = numConstants; m_constantBuffers.at(regIdx) = buf; diff --git a/src/dxbc/dxbc_decoder.h b/src/dxbc/dxbc_decoder.h index 9f5b2fc11..3f5b55350 100644 --- a/src/dxbc/dxbc_decoder.h +++ b/src/dxbc/dxbc_decoder.h @@ -36,7 +36,6 @@ namespace dxvk { */ struct DxbcConstantBuffer { uint32_t varId = 0; - uint32_t specId = 0; uint32_t size = 0; };