commit | 4677a5f7a837e06dac90521eee0cf063cbfb9c9b | [log] [tgz] |
---|---|---|
author | Nicolas Capens <capn@google.com> | Tue May 06 16:42:26 2014 -0400 |
committer | Nicolas Capens <capn@google.com> | Tue May 06 16:42:26 2014 -0400 |
tree | 86cdc8ede43f3eae413118038ef4bb45bae44b8f | |
parent | b5e7a2a06b68386051780e1751cd0c50a9685d6d [diff] [blame] |
Fixed initializing the 'leave' enable mask on every shader iteration.
diff --git a/src/Shader/PixelRoutine.cpp b/src/Shader/PixelRoutine.cpp index 2528a9c..42f6189 100644 --- a/src/Shader/PixelRoutine.cpp +++ b/src/Shader/PixelRoutine.cpp
@@ -3781,6 +3781,11 @@ r.enableIndex = 0; r.stackIndex = 0; + if(shader->containsLeaveInstruction()) + { + r.enableLeave = Int4(0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF); + } + bool out[4][4] = {false}; // Create all call site return blocks up front