From 2081c4219c93c7e8a6bee3b05ea2d80db3d8d674 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 16 Jun 2020 11:07:24 +0100 Subject: [PATCH] Ignore DXIL STAT chunk since we decode bytecode always --- renderdoc/driver/shaders/dxbc/dxbc_container.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/renderdoc/driver/shaders/dxbc/dxbc_container.cpp b/renderdoc/driver/shaders/dxbc/dxbc_container.cpp index a735cc35d..d8e13a208 100644 --- a/renderdoc/driver/shaders/dxbc/dxbc_container.cpp +++ b/renderdoc/driver/shaders/dxbc/dxbc_container.cpp @@ -1107,9 +1107,12 @@ DXBCContainer::DXBCContainer(const void *ByteCode, size_t ByteCodeLength) { RDCEraseEl(m_ShaderStats); m_ShaderStats.version = ShaderStatistics::STATS_DX12; - /* - DXIL::Program prog(chunkContents, *chunkSize); - */ + + // this stats chunk is a whole program, just with the actual function definition removed + // (and any related debug metadata). + // Since we parse the bytecode regardless, there's no point in parsing this as well as a + // 'faster' way of getting reflection information + /* DXIL::Program prog(chunkContents, *chunkSize); */ } else if(*chunkSize == STATSizeDX10) {