diff options
| author | 2023-01-03 10:01:25 -0500 | |
|---|---|---|
| committer | 2023-01-04 14:39:42 -0500 | |
| commit | a0c697124ced080f58866825e2e323e8682bbd7f (patch) | |
| tree | 73830fc46134be10d7feffc3da11aa9f0ea58ffb /src/shader_recompiler/ir_opt/constant_propagation_pass.cpp | |
| parent | Texture Cache: Implement async texture downloads. (diff) | |
| download | yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.tar.gz yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.tar.xz yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.zip | |
Video_core: Address feedback
Diffstat (limited to 'src/shader_recompiler/ir_opt/constant_propagation_pass.cpp')
| -rw-r--r-- | src/shader_recompiler/ir_opt/constant_propagation_pass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp index 5275b2c8b..4d81e9336 100644 --- a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp +++ b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp | |||
| @@ -518,6 +518,7 @@ void FoldBitCast(IR::Inst& inst, IR::Opcode reverse) { | |||
| 518 | case IR::Attribute::VertexId: | 518 | case IR::Attribute::VertexId: |
| 519 | case IR::Attribute::BaseVertex: | 519 | case IR::Attribute::BaseVertex: |
| 520 | case IR::Attribute::BaseInstance: | 520 | case IR::Attribute::BaseInstance: |
| 521 | case IR::Attribute::DrawID: | ||
| 521 | break; | 522 | break; |
| 522 | default: | 523 | default: |
| 523 | return; | 524 | return; |
| @@ -665,6 +666,8 @@ void FoldConstBuffer(Environment& env, IR::Block& block, IR::Inst& inst) { | |||
| 665 | return IR::Attribute::BaseInstance; | 666 | return IR::Attribute::BaseInstance; |
| 666 | case ReplaceConstant::BaseVertex: | 667 | case ReplaceConstant::BaseVertex: |
| 667 | return IR::Attribute::BaseVertex; | 668 | return IR::Attribute::BaseVertex; |
| 669 | case ReplaceConstant::DrawID: | ||
| 670 | return IR::Attribute::DrawID; | ||
| 668 | default: | 671 | default: |
| 669 | throw NotImplementedException("Not implemented replacement variable {}", *replacement); | 672 | throw NotImplementedException("Not implemented replacement variable {}", *replacement); |
| 670 | } | 673 | } |