From a88829614823c9a04baa044c581a4510d5fe564f Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Tue, 5 Nov 2024 15:10:32 +0000 Subject: [PATCH] DXIL Debugger skip ignored PSInputs when calculating derivatives --- renderdoc/driver/shaders/dxil/dxil_debug.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/renderdoc/driver/shaders/dxil/dxil_debug.cpp b/renderdoc/driver/shaders/dxil/dxil_debug.cpp index b64f4dbb49..77786d0647 100644 --- a/renderdoc/driver/shaders/dxil/dxil_debug.cpp +++ b/renderdoc/driver/shaders/dxil/dxil_debug.cpp @@ -1157,6 +1157,9 @@ void ApplyAllDerivatives(GlobalState &global, rdcarray &quad, int d for(const PSInputData &psInput : psInputs) { + if(!psInput.included) + continue; + const int input = psInput.input; const int numWords = psInput.numwords; if(destIdx == 0) @@ -1176,6 +1179,8 @@ void ApplyAllDerivatives(GlobalState &global, rdcarray &quad, int d for(const PSInputData &psInput : psInputs) { + if(!psInput.included) + continue; const int input = psInput.input; const int numWords = psInput.numwords; if(destIdx == 0) @@ -1192,6 +1197,8 @@ void ApplyAllDerivatives(GlobalState &global, rdcarray &quad, int d for(const PSInputData &psInput : psInputs) { + if(!psInput.included) + continue; const int input = psInput.input; const int numWords = psInput.numwords; @@ -1207,6 +1214,8 @@ void ApplyAllDerivatives(GlobalState &global, rdcarray &quad, int d for(const PSInputData &psInput : psInputs) { + if(!psInput.included) + continue; const int input = psInput.input; const int numWords = psInput.numwords;