diff options
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.cpp | 6 | ||||
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.h | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp index 2e3e3346d..b0f7e2269 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp | |||
| @@ -176,9 +176,6 @@ void EmitContext::DefineCommonTypes(const Info& info) { | |||
| 176 | AddCapability(spv::Capability::Float64); | 176 | AddCapability(spv::Capability::Float64); |
| 177 | F64.Define(*this, TypeFloat(64), "f64"); | 177 | F64.Define(*this, TypeFloat(64), "f64"); |
| 178 | } | 178 | } |
| 179 | if (info.stores_clip_distance) { | ||
| 180 | Array8F32 = Name(TypeArray(F32[1], Constant(U32[1], 8)), "array_8_f32"); | ||
| 181 | } | ||
| 182 | } | 179 | } |
| 183 | 180 | ||
| 184 | void EmitContext::DefineCommonConstants() { | 181 | void EmitContext::DefineCommonConstants() { |
| @@ -509,7 +506,8 @@ void EmitContext::DefineOutputs(const Info& info) { | |||
| 509 | if (stage == Stage::Fragment) { | 506 | if (stage == Stage::Fragment) { |
| 510 | throw NotImplementedException("Storing PointSize in Fragment stage"); | 507 | throw NotImplementedException("Storing PointSize in Fragment stage"); |
| 511 | } | 508 | } |
| 512 | clip_distances = DefineOutput(*this, Array8F32, spv::BuiltIn::ClipDistance); | 509 | const Id type{TypeArray(F32[1], Constant(U32[1], 8U))}; |
| 510 | clip_distances = DefineOutput(*this, type, spv::BuiltIn::ClipDistance); | ||
| 513 | } | 511 | } |
| 514 | for (size_t i = 0; i < info.stores_generics.size(); ++i) { | 512 | for (size_t i = 0; i < info.stores_generics.size(); ++i) { |
| 515 | if (info.stores_generics[i]) { | 513 | if (info.stores_generics[i]) { |
diff --git a/src/shader_recompiler/backend/spirv/emit_context.h b/src/shader_recompiler/backend/spirv/emit_context.h index bffe1558c..dc4e1227a 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.h +++ b/src/shader_recompiler/backend/spirv/emit_context.h | |||
| @@ -67,8 +67,6 @@ public: | |||
| 67 | VectorTypes F16; | 67 | VectorTypes F16; |
| 68 | VectorTypes F64; | 68 | VectorTypes F64; |
| 69 | 69 | ||
| 70 | Id Array8F32{}; | ||
| 71 | |||
| 72 | Id true_value{}; | 70 | Id true_value{}; |
| 73 | Id false_value{}; | 71 | Id false_value{}; |
| 74 | Id u32_zero_value{}; | 72 | Id u32_zero_value{}; |