From a516c2d483759a3c8a429176a66babcd26a61251 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 28 Jul 2021 13:02:19 +0100 Subject: [PATCH] Disable view instancing on D3D12 for postvs * It's unclear if this is supposed to be legal or not, and if it is legal then how the output is arranged. --- renderdoc/driver/d3d12/d3d12_postvs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderdoc/driver/d3d12/d3d12_postvs.cpp b/renderdoc/driver/d3d12/d3d12_postvs.cpp index 28e7063c3..4a88e3428 100644 --- a/renderdoc/driver/d3d12/d3d12_postvs.cpp +++ b/renderdoc/driver/d3d12/d3d12_postvs.cpp @@ -335,6 +335,10 @@ void D3D12Replay::InitPostVSBuffers(uint32_t eventId) RDCEraseEl(psoDesc.RTVFormats); psoDesc.DSVFormat = DXGI_FORMAT_UNKNOWN; + // for now disable view instancing, unclear if this is legal but it + psoDesc.ViewInstancing.Flags = D3D12_VIEW_INSTANCING_FLAG_NONE; + psoDesc.ViewInstancing.ViewInstanceCount = 0; + ID3D12PipelineState *pipe = NULL; hr = m_pDevice->CreatePipeState(psoDesc, &pipe); if(FAILED(hr))