diff options
Diffstat (limited to 'src/shader_recompiler')
6 files changed, 169 insertions, 171 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.cpp b/src/shader_recompiler/backend/glsl/emit_glsl.cpp index 77c93146e..0f528b027 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl.cpp | |||
| @@ -37,8 +37,6 @@ template <typename ArgType> | |||
| 37 | ArgType Arg(EmitContext& ctx, const IR::Value& arg) { | 37 | ArgType Arg(EmitContext& ctx, const IR::Value& arg) { |
| 38 | if constexpr (std::is_same_v<ArgType, std::string>) { | 38 | if constexpr (std::is_same_v<ArgType, std::string>) { |
| 39 | return ctx.reg_alloc.Consume(arg); | 39 | return ctx.reg_alloc.Consume(arg); |
| 40 | } else if constexpr (std::is_same_v<ArgType, IR::Inst&>) { | ||
| 41 | return *arg.Inst(); | ||
| 42 | } else if constexpr (std::is_same_v<ArgType, const IR::Value&>) { | 40 | } else if constexpr (std::is_same_v<ArgType, const IR::Value&>) { |
| 43 | return arg; | 41 | return arg; |
| 44 | } else if constexpr (std::is_same_v<ArgType, u32>) { | 42 | } else if constexpr (std::is_same_v<ArgType, u32>) { |
| @@ -58,7 +56,7 @@ void Invoke(EmitContext& ctx, IR::Inst* inst, std::index_sequence<I...>) { | |||
| 58 | if constexpr (std::is_same_v<typename Traits::ReturnType, Id>) { | 56 | if constexpr (std::is_same_v<typename Traits::ReturnType, Id>) { |
| 59 | if constexpr (is_first_arg_inst) { | 57 | if constexpr (is_first_arg_inst) { |
| 60 | SetDefinition<func>( | 58 | SetDefinition<func>( |
| 61 | ctx, inst, inst, | 59 | ctx, inst, *inst, |
| 62 | Arg<typename Traits::template ArgType<I + 2>>(ctx, inst->Arg(I))...); | 60 | Arg<typename Traits::template ArgType<I + 2>>(ctx, inst->Arg(I))...); |
| 63 | } else { | 61 | } else { |
| 64 | SetDefinition<func>( | 62 | SetDefinition<func>( |
| @@ -66,7 +64,7 @@ void Invoke(EmitContext& ctx, IR::Inst* inst, std::index_sequence<I...>) { | |||
| 66 | } | 64 | } |
| 67 | } else { | 65 | } else { |
| 68 | if constexpr (is_first_arg_inst) { | 66 | if constexpr (is_first_arg_inst) { |
| 69 | func(ctx, inst, Arg<typename Traits::template ArgType<I + 2>>(ctx, inst->Arg(I))...); | 67 | func(ctx, *inst, Arg<typename Traits::template ArgType<I + 2>>(ctx, inst->Arg(I))...); |
| 70 | } else { | 68 | } else { |
| 71 | func(ctx, Arg<typename Traits::template ArgType<I + 1>>(ctx, inst->Arg(I))...); | 69 | func(ctx, Arg<typename Traits::template ArgType<I + 1>>(ctx, inst->Arg(I))...); |
| 72 | } | 70 | } |
| @@ -81,7 +79,7 @@ void Invoke(EmitContext& ctx, IR::Inst* inst) { | |||
| 81 | Invoke<func, false>(ctx, inst, std::make_index_sequence<0>{}); | 79 | Invoke<func, false>(ctx, inst, std::make_index_sequence<0>{}); |
| 82 | } else { | 80 | } else { |
| 83 | using FirstArgType = typename Traits::template ArgType<1>; | 81 | using FirstArgType = typename Traits::template ArgType<1>; |
| 84 | static constexpr bool is_first_arg_inst = std::is_same_v<FirstArgType, IR::Inst*>; | 82 | static constexpr bool is_first_arg_inst = std::is_same_v<FirstArgType, IR::Inst&>; |
| 85 | using Indices = std::make_index_sequence<Traits::NUM_ARGS - (is_first_arg_inst ? 2 : 1)>; | 83 | using Indices = std::make_index_sequence<Traits::NUM_ARGS - (is_first_arg_inst ? 2 : 1)>; |
| 86 | Invoke<func, is_first_arg_inst>(ctx, inst, Indices{}); | 84 | Invoke<func, is_first_arg_inst>(ctx, inst, Indices{}); |
| 87 | } | 85 | } |
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp index 7c654e4e7..f40f9900c 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp | |||
| @@ -22,7 +22,7 @@ static void Alias(IR::Inst& inst, const IR::Value& value) { | |||
| 22 | } | 22 | } |
| 23 | } // namespace | 23 | } // namespace |
| 24 | 24 | ||
| 25 | void EmitIdentity(EmitContext&, IR::Inst* inst, const IR::Value& value) { | 25 | void EmitIdentity(EmitContext&, IR::Inst& inst, const IR::Value& value) { |
| 26 | Alias(*inst, value); | 26 | Alias(inst, value); |
| 27 | } | 27 | } |
| 28 | } // namespace Shader::Backend::GLSL | 28 | } // namespace Shader::Backend::GLSL |
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp index ff04cffd2..2f4ecd6a1 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp | |||
| @@ -30,10 +30,10 @@ void EmitGetCbufS16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR | |||
| 30 | throw NotImplementedException("GLSL"); | 30 | throw NotImplementedException("GLSL"); |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | void EmitGetCbufU32(EmitContext& ctx, IR::Inst* inst, const IR::Value& binding, | 33 | void EmitGetCbufU32(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, |
| 34 | const IR::Value& offset) { | 34 | const IR::Value& offset) { |
| 35 | const auto u32_offset{offset.U32()}; | 35 | const auto u32_offset{offset.U32()}; |
| 36 | ctx.AddU32("{}=floatBitsToUint(cbuf{}[{}][{}]);", *inst, binding.U32(), u32_offset / 16, | 36 | ctx.AddU32("{}=floatBitsToUint(cbuf{}[{}][{}]);", inst, binding.U32(), u32_offset / 16, |
| 37 | (u32_offset / 4) % 4); | 37 | (u32_offset / 4) % 4); |
| 38 | } | 38 | } |
| 39 | 39 | ||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h b/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h index 550193dc3..681e0bdb9 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h +++ b/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h | |||
| @@ -25,9 +25,9 @@ inline void EmitSetLoopSafetyVariable(EmitContext&) {} | |||
| 25 | inline void EmitGetLoopSafetyVariable(EmitContext&) {} | 25 | inline void EmitGetLoopSafetyVariable(EmitContext&) {} |
| 26 | 26 | ||
| 27 | // Microinstruction emitters | 27 | // Microinstruction emitters |
| 28 | void EmitPhi(EmitContext& ctx, IR::Inst* inst); | 28 | void EmitPhi(EmitContext& ctx, IR::Inst& inst); |
| 29 | void EmitVoid(EmitContext& ctx); | 29 | void EmitVoid(EmitContext& ctx); |
| 30 | void EmitIdentity(EmitContext& ctx, IR::Inst* inst, const IR::Value& value); | 30 | void EmitIdentity(EmitContext& ctx, IR::Inst& inst, const IR::Value& value); |
| 31 | void EmitConditionRef(EmitContext& ctx, IR::Inst& inst, const IR::Value& value); | 31 | void EmitConditionRef(EmitContext& ctx, IR::Inst& inst, const IR::Value& value); |
| 32 | void EmitReference(EmitContext&); | 32 | void EmitReference(EmitContext&); |
| 33 | void EmitPhiMove(EmitContext& ctx, const IR::Value& phi, const IR::Value& value); | 33 | void EmitPhiMove(EmitContext& ctx, const IR::Value& phi, const IR::Value& value); |
| @@ -59,7 +59,7 @@ void EmitGetCbufU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& | |||
| 59 | void EmitGetCbufS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 59 | void EmitGetCbufS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| 60 | void EmitGetCbufU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 60 | void EmitGetCbufU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| 61 | void EmitGetCbufS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 61 | void EmitGetCbufS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| 62 | void EmitGetCbufU32(EmitContext& ctx, IR::Inst* inst, const IR::Value& binding, | 62 | void EmitGetCbufU32(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, |
| 63 | const IR::Value& offset); | 63 | const IR::Value& offset); |
| 64 | void EmitGetCbufF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 64 | void EmitGetCbufF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| 65 | void EmitGetCbufU32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 65 | void EmitGetCbufU32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| @@ -231,19 +231,19 @@ void EmitGetInBoundsFromOp(EmitContext& ctx); | |||
| 231 | void EmitFPAbs16(EmitContext& ctx, std::string value); | 231 | void EmitFPAbs16(EmitContext& ctx, std::string value); |
| 232 | void EmitFPAbs32(EmitContext& ctx, std::string value); | 232 | void EmitFPAbs32(EmitContext& ctx, std::string value); |
| 233 | void EmitFPAbs64(EmitContext& ctx, std::string value); | 233 | void EmitFPAbs64(EmitContext& ctx, std::string value); |
| 234 | void EmitFPAdd16(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 234 | void EmitFPAdd16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 235 | void EmitFPAdd32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 235 | void EmitFPAdd32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 236 | void EmitFPAdd64(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 236 | void EmitFPAdd64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 237 | void EmitFPFma16(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b, std::string c); | 237 | void EmitFPFma16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c); |
| 238 | void EmitFPFma32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b, std::string c); | 238 | void EmitFPFma32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c); |
| 239 | void EmitFPFma64(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b, std::string c); | 239 | void EmitFPFma64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c); |
| 240 | void EmitFPMax32(EmitContext& ctx, std::string a, std::string b); | 240 | void EmitFPMax32(EmitContext& ctx, std::string a, std::string b); |
| 241 | void EmitFPMax64(EmitContext& ctx, std::string a, std::string b); | 241 | void EmitFPMax64(EmitContext& ctx, std::string a, std::string b); |
| 242 | void EmitFPMin32(EmitContext& ctx, std::string a, std::string b); | 242 | void EmitFPMin32(EmitContext& ctx, std::string a, std::string b); |
| 243 | void EmitFPMin64(EmitContext& ctx, std::string a, std::string b); | 243 | void EmitFPMin64(EmitContext& ctx, std::string a, std::string b); |
| 244 | void EmitFPMul16(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 244 | void EmitFPMul16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 245 | void EmitFPMul32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 245 | void EmitFPMul32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 246 | void EmitFPMul64(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 246 | void EmitFPMul64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 247 | void EmitFPNeg16(EmitContext& ctx, std::string value); | 247 | void EmitFPNeg16(EmitContext& ctx, std::string value); |
| 248 | void EmitFPNeg32(EmitContext& ctx, std::string value); | 248 | void EmitFPNeg32(EmitContext& ctx, std::string value); |
| 249 | void EmitFPNeg64(EmitContext& ctx, std::string value); | 249 | void EmitFPNeg64(EmitContext& ctx, std::string value); |
| @@ -316,55 +316,55 @@ void EmitFPUnordGreaterThanEqual64(EmitContext& ctx, std::string lhs, std::strin | |||
| 316 | void EmitFPIsNan16(EmitContext& ctx, std::string value); | 316 | void EmitFPIsNan16(EmitContext& ctx, std::string value); |
| 317 | void EmitFPIsNan32(EmitContext& ctx, std::string value); | 317 | void EmitFPIsNan32(EmitContext& ctx, std::string value); |
| 318 | void EmitFPIsNan64(EmitContext& ctx, std::string value); | 318 | void EmitFPIsNan64(EmitContext& ctx, std::string value); |
| 319 | void EmitIAdd32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 319 | void EmitIAdd32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 320 | void EmitIAdd64(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 320 | void EmitIAdd64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 321 | void EmitISub32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 321 | void EmitISub32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 322 | void EmitISub64(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 322 | void EmitISub64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 323 | void EmitIMul32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 323 | void EmitIMul32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 324 | void EmitINeg32(EmitContext& ctx, IR::Inst* inst, std::string value); | 324 | void EmitINeg32(EmitContext& ctx, IR::Inst& inst, std::string value); |
| 325 | void EmitINeg64(EmitContext& ctx, IR::Inst* inst, std::string value); | 325 | void EmitINeg64(EmitContext& ctx, IR::Inst& inst, std::string value); |
| 326 | void EmitIAbs32(EmitContext& ctx, IR::Inst* inst, std::string value); | 326 | void EmitIAbs32(EmitContext& ctx, IR::Inst& inst, std::string value); |
| 327 | void EmitIAbs64(EmitContext& ctx, IR::Inst* inst, std::string value); | 327 | void EmitIAbs64(EmitContext& ctx, IR::Inst& inst, std::string value); |
| 328 | void EmitShiftLeftLogical32(EmitContext& ctx, IR::Inst* inst, std::string base, std::string shift); | 328 | void EmitShiftLeftLogical32(EmitContext& ctx, IR::Inst& inst, std::string base, std::string shift); |
| 329 | void EmitShiftLeftLogical64(EmitContext& ctx, IR::Inst* inst, std::string base, std::string shift); | 329 | void EmitShiftLeftLogical64(EmitContext& ctx, IR::Inst& inst, std::string base, std::string shift); |
| 330 | void EmitShiftRightLogical32(EmitContext& ctx, IR::Inst* inst, std::string base, std::string shift); | 330 | void EmitShiftRightLogical32(EmitContext& ctx, IR::Inst& inst, std::string base, std::string shift); |
| 331 | void EmitShiftRightLogical64(EmitContext& ctx, IR::Inst* inst, std::string base, std::string shift); | 331 | void EmitShiftRightLogical64(EmitContext& ctx, IR::Inst& inst, std::string base, std::string shift); |
| 332 | void EmitShiftRightArithmetic32(EmitContext& ctx, IR::Inst* inst, std::string base, | 332 | void EmitShiftRightArithmetic32(EmitContext& ctx, IR::Inst& inst, std::string base, |
| 333 | std::string shift); | 333 | std::string shift); |
| 334 | void EmitShiftRightArithmetic64(EmitContext& ctx, IR::Inst* inst, std::string base, | 334 | void EmitShiftRightArithmetic64(EmitContext& ctx, IR::Inst& inst, std::string base, |
| 335 | std::string shift); | 335 | std::string shift); |
| 336 | void EmitBitwiseAnd32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 336 | void EmitBitwiseAnd32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 337 | void EmitBitwiseOr32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 337 | void EmitBitwiseOr32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 338 | void EmitBitwiseXor32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 338 | void EmitBitwiseXor32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 339 | void EmitBitFieldInsert(EmitContext& ctx, IR::Inst* inst, std::string base, std::string insert, | 339 | void EmitBitFieldInsert(EmitContext& ctx, IR::Inst& inst, std::string base, std::string insert, |
| 340 | std::string offset, std::string count); | 340 | std::string offset, std::string count); |
| 341 | void EmitBitFieldSExtract(EmitContext& ctx, IR::Inst* inst, std::string base, std::string offset, | 341 | void EmitBitFieldSExtract(EmitContext& ctx, IR::Inst& inst, std::string base, std::string offset, |
| 342 | std::string count); | 342 | std::string count); |
| 343 | void EmitBitFieldUExtract(EmitContext& ctx, IR::Inst* inst, std::string base, std::string offset, | 343 | void EmitBitFieldUExtract(EmitContext& ctx, IR::Inst& inst, std::string base, std::string offset, |
| 344 | std::string count); | 344 | std::string count); |
| 345 | void EmitBitReverse32(EmitContext& ctx, IR::Inst* inst, std::string value); | 345 | void EmitBitReverse32(EmitContext& ctx, IR::Inst& inst, std::string value); |
| 346 | void EmitBitCount32(EmitContext& ctx, IR::Inst* inst, std::string value); | 346 | void EmitBitCount32(EmitContext& ctx, IR::Inst& inst, std::string value); |
| 347 | void EmitBitwiseNot32(EmitContext& ctx, IR::Inst* inst, std::string value); | 347 | void EmitBitwiseNot32(EmitContext& ctx, IR::Inst& inst, std::string value); |
| 348 | void EmitFindSMsb32(EmitContext& ctx, IR::Inst* inst, std::string value); | 348 | void EmitFindSMsb32(EmitContext& ctx, IR::Inst& inst, std::string value); |
| 349 | void EmitFindUMsb32(EmitContext& ctx, IR::Inst* inst, std::string value); | 349 | void EmitFindUMsb32(EmitContext& ctx, IR::Inst& inst, std::string value); |
| 350 | void EmitSMin32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 350 | void EmitSMin32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 351 | void EmitUMin32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 351 | void EmitUMin32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 352 | void EmitSMax32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 352 | void EmitSMax32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 353 | void EmitUMax32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b); | 353 | void EmitUMax32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); |
| 354 | void EmitSClamp32(EmitContext& ctx, IR::Inst* inst, std::string value, std::string min, | 354 | void EmitSClamp32(EmitContext& ctx, IR::Inst& inst, std::string value, std::string min, |
| 355 | std::string max); | 355 | std::string max); |
| 356 | void EmitUClamp32(EmitContext& ctx, IR::Inst* inst, std::string value, std::string min, | 356 | void EmitUClamp32(EmitContext& ctx, IR::Inst& inst, std::string value, std::string min, |
| 357 | std::string max); | 357 | std::string max); |
| 358 | void EmitSLessThan(EmitContext& ctx, IR::Inst* inst, std::string lhs, std::string rhs); | 358 | void EmitSLessThan(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); |
| 359 | void EmitULessThan(EmitContext& ctx, IR::Inst* inst, std::string lhs, std::string rhs); | 359 | void EmitULessThan(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); |
| 360 | void EmitIEqual(EmitContext& ctx, IR::Inst* inst, std::string lhs, std::string rhs); | 360 | void EmitIEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); |
| 361 | void EmitSLessThanEqual(EmitContext& ctx, IR::Inst* inst, std::string lhs, std::string rhs); | 361 | void EmitSLessThanEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); |
| 362 | void EmitULessThanEqual(EmitContext& ctx, IR::Inst* inst, std::string lhs, std::string rhs); | 362 | void EmitULessThanEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); |
| 363 | void EmitSGreaterThan(EmitContext& ctx, IR::Inst* inst, std::string lhs, std::string rhs); | 363 | void EmitSGreaterThan(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); |
| 364 | void EmitUGreaterThan(EmitContext& ctx, IR::Inst* inst, std::string lhs, std::string rhs); | 364 | void EmitUGreaterThan(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); |
| 365 | void EmitINotEqual(EmitContext& ctx, IR::Inst* inst, std::string lhs, std::string rhs); | 365 | void EmitINotEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); |
| 366 | void EmitSGreaterThanEqual(EmitContext& ctx, IR::Inst* inst, std::string lhs, std::string rhs); | 366 | void EmitSGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); |
| 367 | void EmitUGreaterThanEqual(EmitContext& ctx, IR::Inst* inst, std::string lhs, std::string rhs); | 367 | void EmitUGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); |
| 368 | void EmitSharedAtomicIAdd32(EmitContext& ctx, std::string pointer_offset, std::string value); | 368 | void EmitSharedAtomicIAdd32(EmitContext& ctx, std::string pointer_offset, std::string value); |
| 369 | void EmitSharedAtomicSMin32(EmitContext& ctx, std::string pointer_offset, std::string value); | 369 | void EmitSharedAtomicSMin32(EmitContext& ctx, std::string pointer_offset, std::string value); |
| 370 | void EmitSharedAtomicUMin32(EmitContext& ctx, std::string pointer_offset, std::string value); | 370 | void EmitSharedAtomicUMin32(EmitContext& ctx, std::string pointer_offset, std::string value); |
| @@ -536,31 +536,31 @@ void EmitBoundImageQueryLod(EmitContext&); | |||
| 536 | void EmitBoundImageGradient(EmitContext&); | 536 | void EmitBoundImageGradient(EmitContext&); |
| 537 | void EmitBoundImageRead(EmitContext&); | 537 | void EmitBoundImageRead(EmitContext&); |
| 538 | void EmitBoundImageWrite(EmitContext&); | 538 | void EmitBoundImageWrite(EmitContext&); |
| 539 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 539 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 540 | std::string coords, std::string bias_lc, const IR::Value& offset); | 540 | std::string coords, std::string bias_lc, const IR::Value& offset); |
| 541 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 541 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 542 | std::string coords, std::string lod_lc, const IR::Value& offset); | 542 | std::string coords, std::string lod_lc, const IR::Value& offset); |
| 543 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 543 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 544 | std::string coords, std::string dref, std::string bias_lc, | 544 | std::string coords, std::string dref, std::string bias_lc, |
| 545 | const IR::Value& offset); | 545 | const IR::Value& offset); |
| 546 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 546 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 547 | std::string coords, std::string dref, std::string lod_lc, | 547 | std::string coords, std::string dref, std::string lod_lc, |
| 548 | const IR::Value& offset); | 548 | const IR::Value& offset); |
| 549 | void EmitImageGather(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, std::string coords, | 549 | void EmitImageGather(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, |
| 550 | const IR::Value& offset, const IR::Value& offset2); | 550 | const IR::Value& offset, const IR::Value& offset2); |
| 551 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 551 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 552 | std::string coords, const IR::Value& offset, const IR::Value& offset2, | 552 | std::string coords, const IR::Value& offset, const IR::Value& offset2, |
| 553 | std::string dref); | 553 | std::string dref); |
| 554 | void EmitImageFetch(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, std::string coords, | 554 | void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, |
| 555 | std::string offset, std::string lod, std::string ms); | 555 | std::string offset, std::string lod, std::string ms); |
| 556 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 556 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 557 | std::string lod); | 557 | std::string lod); |
| 558 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 558 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 559 | std::string coords); | 559 | std::string coords); |
| 560 | void EmitImageGradient(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, std::string coords, | 560 | void EmitImageGradient(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, |
| 561 | std::string derivates, std::string offset, std::string lod_clamp); | 561 | std::string derivates, std::string offset, std::string lod_clamp); |
| 562 | void EmitImageRead(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, std::string coords); | 562 | void EmitImageRead(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords); |
| 563 | void EmitImageWrite(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, std::string coords, | 563 | void EmitImageWrite(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, |
| 564 | std::string color); | 564 | std::string color); |
| 565 | void EmitBindlessImageAtomicIAdd32(EmitContext&); | 565 | void EmitBindlessImageAtomicIAdd32(EmitContext&); |
| 566 | void EmitBindlessImageAtomicSMin32(EmitContext&); | 566 | void EmitBindlessImageAtomicSMin32(EmitContext&); |
| @@ -584,27 +584,27 @@ void EmitBoundImageAtomicAnd32(EmitContext&); | |||
| 584 | void EmitBoundImageAtomicOr32(EmitContext&); | 584 | void EmitBoundImageAtomicOr32(EmitContext&); |
| 585 | void EmitBoundImageAtomicXor32(EmitContext&); | 585 | void EmitBoundImageAtomicXor32(EmitContext&); |
| 586 | void EmitBoundImageAtomicExchange32(EmitContext&); | 586 | void EmitBoundImageAtomicExchange32(EmitContext&); |
| 587 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 587 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 588 | std::string coords, std::string value); | 588 | std::string coords, std::string value); |
| 589 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 589 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 590 | std::string coords, std::string value); | 590 | std::string coords, std::string value); |
| 591 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 591 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 592 | std::string coords, std::string value); | 592 | std::string coords, std::string value); |
| 593 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 593 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 594 | std::string coords, std::string value); | 594 | std::string coords, std::string value); |
| 595 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 595 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 596 | std::string coords, std::string value); | 596 | std::string coords, std::string value); |
| 597 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 597 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 598 | std::string coords, std::string value); | 598 | std::string coords, std::string value); |
| 599 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 599 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 600 | std::string coords, std::string value); | 600 | std::string coords, std::string value); |
| 601 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 601 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 602 | std::string coords, std::string value); | 602 | std::string coords, std::string value); |
| 603 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 603 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 604 | std::string coords, std::string value); | 604 | std::string coords, std::string value); |
| 605 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 605 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 606 | std::string coords, std::string value); | 606 | std::string coords, std::string value); |
| 607 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 607 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 608 | std::string coords, std::string value); | 608 | std::string coords, std::string value); |
| 609 | void EmitLaneId(EmitContext& ctx); | 609 | void EmitLaneId(EmitContext& ctx); |
| 610 | void EmitVoteAll(EmitContext& ctx, std::string pred); | 610 | void EmitVoteAll(EmitContext& ctx, std::string pred); |
| @@ -616,13 +616,13 @@ void EmitSubgroupLtMask(EmitContext& ctx); | |||
| 616 | void EmitSubgroupLeMask(EmitContext& ctx); | 616 | void EmitSubgroupLeMask(EmitContext& ctx); |
| 617 | void EmitSubgroupGtMask(EmitContext& ctx); | 617 | void EmitSubgroupGtMask(EmitContext& ctx); |
| 618 | void EmitSubgroupGeMask(EmitContext& ctx); | 618 | void EmitSubgroupGeMask(EmitContext& ctx); |
| 619 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst* inst, std::string value, std::string index, | 619 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, |
| 620 | std::string clamp, std::string segmentation_mask); | 620 | std::string clamp, std::string segmentation_mask); |
| 621 | void EmitShuffleUp(EmitContext& ctx, IR::Inst* inst, std::string value, std::string index, | 621 | void EmitShuffleUp(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, |
| 622 | std::string clamp, std::string segmentation_mask); | 622 | std::string clamp, std::string segmentation_mask); |
| 623 | void EmitShuffleDown(EmitContext& ctx, IR::Inst* inst, std::string value, std::string index, | 623 | void EmitShuffleDown(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, |
| 624 | std::string clamp, std::string segmentation_mask); | 624 | std::string clamp, std::string segmentation_mask); |
| 625 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst* inst, std::string value, std::string index, | 625 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, |
| 626 | std::string clamp, std::string segmentation_mask); | 626 | std::string clamp, std::string segmentation_mask); |
| 627 | void EmitFSwizzleAdd(EmitContext& ctx, std::string op_a, std::string op_b, std::string swizzle); | 627 | void EmitFSwizzleAdd(EmitContext& ctx, std::string op_a, std::string op_b, std::string swizzle); |
| 628 | void EmitDPdxFine(EmitContext& ctx, std::string op_a); | 628 | void EmitDPdxFine(EmitContext& ctx, std::string op_a); |
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp index f03b2dba9..0dadf1d93 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp | |||
| @@ -11,221 +11,221 @@ | |||
| 11 | #include "shader_recompiler/profile.h" | 11 | #include "shader_recompiler/profile.h" |
| 12 | 12 | ||
| 13 | namespace Shader::Backend::GLSL { | 13 | namespace Shader::Backend::GLSL { |
| 14 | void EmitIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 14 | void EmitIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 15 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 15 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 16 | ctx.AddU32("{}={}+{};", *inst, a, b); | 16 | ctx.AddU32("{}={}+{};", inst, a, b); |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 19 | void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 20 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 20 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 21 | throw NotImplementedException("GLSL Instruction"); | 21 | throw NotImplementedException("GLSL Instruction"); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 24 | void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 25 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 25 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 26 | throw NotImplementedException("GLSL Instruction"); | 26 | throw NotImplementedException("GLSL Instruction"); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 29 | void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 30 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 30 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 31 | throw NotImplementedException("GLSL Instruction"); | 31 | throw NotImplementedException("GLSL Instruction"); |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | void EmitIMul32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 34 | void EmitIMul32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 35 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 35 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 36 | throw NotImplementedException("GLSL Instruction"); | 36 | throw NotImplementedException("GLSL Instruction"); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | void EmitINeg32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 39 | void EmitINeg32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 40 | [[maybe_unused]] std::string value) { | 40 | [[maybe_unused]] std::string value) { |
| 41 | ctx.AddU32("{}=-{};", *inst, value); | 41 | ctx.AddU32("{}=-{};", inst, value); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void EmitINeg64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 44 | void EmitINeg64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 45 | [[maybe_unused]] std::string value) { | 45 | [[maybe_unused]] std::string value) { |
| 46 | throw NotImplementedException("GLSL Instruction"); | 46 | throw NotImplementedException("GLSL Instruction"); |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | void EmitIAbs32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 49 | void EmitIAbs32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 50 | [[maybe_unused]] std::string value) { | 50 | [[maybe_unused]] std::string value) { |
| 51 | throw NotImplementedException("GLSL Instruction"); | 51 | throw NotImplementedException("GLSL Instruction"); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | void EmitIAbs64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 54 | void EmitIAbs64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 55 | [[maybe_unused]] std::string value) { | 55 | [[maybe_unused]] std::string value) { |
| 56 | throw NotImplementedException("GLSL Instruction"); | 56 | throw NotImplementedException("GLSL Instruction"); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void EmitShiftLeftLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 59 | void EmitShiftLeftLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 60 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string shift) { | 60 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string shift) { |
| 61 | throw NotImplementedException("GLSL Instruction"); | 61 | throw NotImplementedException("GLSL Instruction"); |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | void EmitShiftLeftLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 64 | void EmitShiftLeftLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 65 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string shift) { | 65 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string shift) { |
| 66 | throw NotImplementedException("GLSL Instruction"); | 66 | throw NotImplementedException("GLSL Instruction"); |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | void EmitShiftRightLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 69 | void EmitShiftRightLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 70 | [[maybe_unused]] std::string base, | 70 | [[maybe_unused]] std::string base, |
| 71 | [[maybe_unused]] std::string shift) { | 71 | [[maybe_unused]] std::string shift) { |
| 72 | throw NotImplementedException("GLSL Instruction"); | 72 | throw NotImplementedException("GLSL Instruction"); |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | void EmitShiftRightLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 75 | void EmitShiftRightLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 76 | [[maybe_unused]] std::string base, | 76 | [[maybe_unused]] std::string base, |
| 77 | [[maybe_unused]] std::string shift) { | 77 | [[maybe_unused]] std::string shift) { |
| 78 | throw NotImplementedException("GLSL Instruction"); | 78 | throw NotImplementedException("GLSL Instruction"); |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | void EmitShiftRightArithmetic32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 81 | void EmitShiftRightArithmetic32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 82 | [[maybe_unused]] std::string base, | 82 | [[maybe_unused]] std::string base, |
| 83 | [[maybe_unused]] std::string shift) { | 83 | [[maybe_unused]] std::string shift) { |
| 84 | throw NotImplementedException("GLSL Instruction"); | 84 | throw NotImplementedException("GLSL Instruction"); |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | void EmitShiftRightArithmetic64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 87 | void EmitShiftRightArithmetic64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 88 | [[maybe_unused]] std::string base, | 88 | [[maybe_unused]] std::string base, |
| 89 | [[maybe_unused]] std::string shift) { | 89 | [[maybe_unused]] std::string shift) { |
| 90 | throw NotImplementedException("GLSL Instruction"); | 90 | throw NotImplementedException("GLSL Instruction"); |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | void EmitBitwiseAnd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 93 | void EmitBitwiseAnd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 94 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 94 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 95 | throw NotImplementedException("GLSL Instruction"); | 95 | throw NotImplementedException("GLSL Instruction"); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | void EmitBitwiseOr32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 98 | void EmitBitwiseOr32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 99 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 99 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 100 | throw NotImplementedException("GLSL Instruction"); | 100 | throw NotImplementedException("GLSL Instruction"); |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | void EmitBitwiseXor32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 103 | void EmitBitwiseXor32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 104 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 104 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 105 | throw NotImplementedException("GLSL Instruction"); | 105 | throw NotImplementedException("GLSL Instruction"); |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | void EmitBitFieldInsert([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 108 | void EmitBitFieldInsert([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 109 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string insert, | 109 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string insert, |
| 110 | [[maybe_unused]] std::string offset, std::string count) { | 110 | [[maybe_unused]] std::string offset, std::string count) { |
| 111 | throw NotImplementedException("GLSL Instruction"); | 111 | throw NotImplementedException("GLSL Instruction"); |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | void EmitBitFieldSExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 114 | void EmitBitFieldSExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 115 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string offset, | 115 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string offset, |
| 116 | std::string count) { | 116 | std::string count) { |
| 117 | throw NotImplementedException("GLSL Instruction"); | 117 | throw NotImplementedException("GLSL Instruction"); |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | void EmitBitFieldUExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 120 | void EmitBitFieldUExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 121 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string offset, | 121 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string offset, |
| 122 | std::string count) { | 122 | std::string count) { |
| 123 | throw NotImplementedException("GLSL Instruction"); | 123 | throw NotImplementedException("GLSL Instruction"); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | void EmitBitReverse32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 126 | void EmitBitReverse32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 127 | [[maybe_unused]] std::string value) { | 127 | [[maybe_unused]] std::string value) { |
| 128 | throw NotImplementedException("GLSL Instruction"); | 128 | throw NotImplementedException("GLSL Instruction"); |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | void EmitBitCount32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 131 | void EmitBitCount32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 132 | [[maybe_unused]] std::string value) { | 132 | [[maybe_unused]] std::string value) { |
| 133 | throw NotImplementedException("GLSL Instruction"); | 133 | throw NotImplementedException("GLSL Instruction"); |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | void EmitBitwiseNot32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 136 | void EmitBitwiseNot32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 137 | [[maybe_unused]] std::string value) { | 137 | [[maybe_unused]] std::string value) { |
| 138 | throw NotImplementedException("GLSL Instruction"); | 138 | throw NotImplementedException("GLSL Instruction"); |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | void EmitFindSMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 141 | void EmitFindSMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 142 | [[maybe_unused]] std::string value) { | 142 | [[maybe_unused]] std::string value) { |
| 143 | throw NotImplementedException("GLSL Instruction"); | 143 | throw NotImplementedException("GLSL Instruction"); |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | void EmitFindUMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 146 | void EmitFindUMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 147 | [[maybe_unused]] std::string value) { | 147 | [[maybe_unused]] std::string value) { |
| 148 | throw NotImplementedException("GLSL Instruction"); | 148 | throw NotImplementedException("GLSL Instruction"); |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | void EmitSMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 151 | void EmitSMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 152 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 152 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 153 | throw NotImplementedException("GLSL Instruction"); | 153 | throw NotImplementedException("GLSL Instruction"); |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | void EmitUMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 156 | void EmitUMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 157 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 157 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 158 | throw NotImplementedException("GLSL Instruction"); | 158 | throw NotImplementedException("GLSL Instruction"); |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | void EmitSMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 161 | void EmitSMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 162 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 162 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 163 | throw NotImplementedException("GLSL Instruction"); | 163 | throw NotImplementedException("GLSL Instruction"); |
| 164 | } | 164 | } |
| 165 | 165 | ||
| 166 | void EmitUMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 166 | void EmitUMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 167 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 167 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { |
| 168 | throw NotImplementedException("GLSL Instruction"); | 168 | throw NotImplementedException("GLSL Instruction"); |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | void EmitSClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 171 | void EmitSClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 172 | [[maybe_unused]] std::string value, [[maybe_unused]] std::string min, | 172 | [[maybe_unused]] std::string value, [[maybe_unused]] std::string min, |
| 173 | std::string max) { | 173 | std::string max) { |
| 174 | throw NotImplementedException("GLSL Instruction"); | 174 | throw NotImplementedException("GLSL Instruction"); |
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | void EmitUClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 177 | void EmitUClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 178 | [[maybe_unused]] std::string value, [[maybe_unused]] std::string min, | 178 | [[maybe_unused]] std::string value, [[maybe_unused]] std::string min, |
| 179 | std::string max) { | 179 | std::string max) { |
| 180 | throw NotImplementedException("GLSL Instruction"); | 180 | throw NotImplementedException("GLSL Instruction"); |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | void EmitSLessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 183 | void EmitSLessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 184 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 184 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { |
| 185 | throw NotImplementedException("GLSL Instruction"); | 185 | throw NotImplementedException("GLSL Instruction"); |
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | void EmitULessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 188 | void EmitULessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 189 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 189 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { |
| 190 | throw NotImplementedException("GLSL Instruction"); | 190 | throw NotImplementedException("GLSL Instruction"); |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | void EmitIEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 193 | void EmitIEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 194 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 194 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { |
| 195 | throw NotImplementedException("GLSL Instruction"); | 195 | throw NotImplementedException("GLSL Instruction"); |
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | void EmitSLessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 198 | void EmitSLessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 199 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 199 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { |
| 200 | throw NotImplementedException("GLSL Instruction"); | 200 | throw NotImplementedException("GLSL Instruction"); |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | void EmitULessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 203 | void EmitULessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 204 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 204 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { |
| 205 | throw NotImplementedException("GLSL Instruction"); | 205 | throw NotImplementedException("GLSL Instruction"); |
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | void EmitSGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 208 | void EmitSGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 209 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 209 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { |
| 210 | throw NotImplementedException("GLSL Instruction"); | 210 | throw NotImplementedException("GLSL Instruction"); |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | void EmitUGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 213 | void EmitUGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 214 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 214 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { |
| 215 | throw NotImplementedException("GLSL Instruction"); | 215 | throw NotImplementedException("GLSL Instruction"); |
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | void EmitINotEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 218 | void EmitINotEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 219 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 219 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { |
| 220 | throw NotImplementedException("GLSL Instruction"); | 220 | throw NotImplementedException("GLSL Instruction"); |
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | void EmitSGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 223 | void EmitSGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 224 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 224 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { |
| 225 | throw NotImplementedException("GLSL Instruction"); | 225 | throw NotImplementedException("GLSL Instruction"); |
| 226 | } | 226 | } |
| 227 | 227 | ||
| 228 | void EmitUGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst* inst, | 228 | void EmitUGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 229 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 229 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { |
| 230 | throw NotImplementedException("GLSL Instruction"); | 230 | throw NotImplementedException("GLSL Instruction"); |
| 231 | } | 231 | } |
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp index f39c1fff0..0775d5c84 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp | |||
| @@ -19,7 +19,7 @@ static void NotImplemented() { | |||
| 19 | throw NotImplementedException("GLSL instruction"); | 19 | throw NotImplementedException("GLSL instruction"); |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | void EmitPhi(EmitContext& ctx, IR::Inst* inst) { | 22 | void EmitPhi(EmitContext& ctx, IR::Inst& inst) { |
| 23 | NotImplemented(); | 23 | NotImplemented(); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| @@ -648,27 +648,27 @@ void EmitFPAbs64(EmitContext& ctx, std::string value) { | |||
| 648 | NotImplemented(); | 648 | NotImplemented(); |
| 649 | } | 649 | } |
| 650 | 650 | ||
| 651 | void EmitFPAdd16(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b) { | 651 | void EmitFPAdd16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { |
| 652 | NotImplemented(); | 652 | NotImplemented(); |
| 653 | } | 653 | } |
| 654 | 654 | ||
| 655 | void EmitFPAdd32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b) { | 655 | void EmitFPAdd32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { |
| 656 | NotImplemented(); | 656 | NotImplemented(); |
| 657 | } | 657 | } |
| 658 | 658 | ||
| 659 | void EmitFPAdd64(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b) { | 659 | void EmitFPAdd64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { |
| 660 | NotImplemented(); | 660 | NotImplemented(); |
| 661 | } | 661 | } |
| 662 | 662 | ||
| 663 | void EmitFPFma16(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b, std::string c) { | 663 | void EmitFPFma16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c) { |
| 664 | NotImplemented(); | 664 | NotImplemented(); |
| 665 | } | 665 | } |
| 666 | 666 | ||
| 667 | void EmitFPFma32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b, std::string c) { | 667 | void EmitFPFma32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c) { |
| 668 | NotImplemented(); | 668 | NotImplemented(); |
| 669 | } | 669 | } |
| 670 | 670 | ||
| 671 | void EmitFPFma64(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b, std::string c) { | 671 | void EmitFPFma64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c) { |
| 672 | NotImplemented(); | 672 | NotImplemented(); |
| 673 | } | 673 | } |
| 674 | 674 | ||
| @@ -688,15 +688,15 @@ void EmitFPMin64(EmitContext& ctx, std::string a, std::string b) { | |||
| 688 | NotImplemented(); | 688 | NotImplemented(); |
| 689 | } | 689 | } |
| 690 | 690 | ||
| 691 | void EmitFPMul16(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b) { | 691 | void EmitFPMul16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { |
| 692 | NotImplemented(); | 692 | NotImplemented(); |
| 693 | } | 693 | } |
| 694 | 694 | ||
| 695 | void EmitFPMul32(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b) { | 695 | void EmitFPMul32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { |
| 696 | NotImplemented(); | 696 | NotImplemented(); |
| 697 | } | 697 | } |
| 698 | 698 | ||
| 699 | void EmitFPMul64(EmitContext& ctx, IR::Inst* inst, std::string a, std::string b) { | 699 | void EmitFPMul64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { |
| 700 | NotImplemented(); | 700 | NotImplemented(); |
| 701 | } | 701 | } |
| 702 | 702 | ||
| @@ -1582,64 +1582,64 @@ void EmitBoundImageWrite(EmitContext&) { | |||
| 1582 | NotImplemented(); | 1582 | NotImplemented(); |
| 1583 | } | 1583 | } |
| 1584 | 1584 | ||
| 1585 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1585 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1586 | std::string coords, std::string bias_lc, const IR::Value& offset) { | 1586 | std::string coords, std::string bias_lc, const IR::Value& offset) { |
| 1587 | NotImplemented(); | 1587 | NotImplemented(); |
| 1588 | } | 1588 | } |
| 1589 | 1589 | ||
| 1590 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1590 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1591 | std::string coords, std::string lod_lc, const IR::Value& offset) { | 1591 | std::string coords, std::string lod_lc, const IR::Value& offset) { |
| 1592 | NotImplemented(); | 1592 | NotImplemented(); |
| 1593 | } | 1593 | } |
| 1594 | 1594 | ||
| 1595 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1595 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1596 | std::string coords, std::string dref, std::string bias_lc, | 1596 | std::string coords, std::string dref, std::string bias_lc, |
| 1597 | const IR::Value& offset) { | 1597 | const IR::Value& offset) { |
| 1598 | NotImplemented(); | 1598 | NotImplemented(); |
| 1599 | } | 1599 | } |
| 1600 | 1600 | ||
| 1601 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1601 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1602 | std::string coords, std::string dref, std::string lod_lc, | 1602 | std::string coords, std::string dref, std::string lod_lc, |
| 1603 | const IR::Value& offset) { | 1603 | const IR::Value& offset) { |
| 1604 | NotImplemented(); | 1604 | NotImplemented(); |
| 1605 | } | 1605 | } |
| 1606 | 1606 | ||
| 1607 | void EmitImageGather(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, std::string coords, | 1607 | void EmitImageGather(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, |
| 1608 | const IR::Value& offset, const IR::Value& offset2) { | 1608 | const IR::Value& offset, const IR::Value& offset2) { |
| 1609 | NotImplemented(); | 1609 | NotImplemented(); |
| 1610 | } | 1610 | } |
| 1611 | 1611 | ||
| 1612 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1612 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1613 | std::string coords, const IR::Value& offset, const IR::Value& offset2, | 1613 | std::string coords, const IR::Value& offset, const IR::Value& offset2, |
| 1614 | std::string dref) { | 1614 | std::string dref) { |
| 1615 | NotImplemented(); | 1615 | NotImplemented(); |
| 1616 | } | 1616 | } |
| 1617 | 1617 | ||
| 1618 | void EmitImageFetch(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, std::string coords, | 1618 | void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, |
| 1619 | std::string offset, std::string lod, std::string ms) { | 1619 | std::string offset, std::string lod, std::string ms) { |
| 1620 | NotImplemented(); | 1620 | NotImplemented(); |
| 1621 | } | 1621 | } |
| 1622 | 1622 | ||
| 1623 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1623 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1624 | std::string lod) { | 1624 | std::string lod) { |
| 1625 | NotImplemented(); | 1625 | NotImplemented(); |
| 1626 | } | 1626 | } |
| 1627 | 1627 | ||
| 1628 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1628 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1629 | std::string coords) { | 1629 | std::string coords) { |
| 1630 | NotImplemented(); | 1630 | NotImplemented(); |
| 1631 | } | 1631 | } |
| 1632 | 1632 | ||
| 1633 | void EmitImageGradient(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, std::string coords, | 1633 | void EmitImageGradient(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, |
| 1634 | std::string derivates, std::string offset, std::string lod_clamp) { | 1634 | std::string derivates, std::string offset, std::string lod_clamp) { |
| 1635 | NotImplemented(); | 1635 | NotImplemented(); |
| 1636 | } | 1636 | } |
| 1637 | 1637 | ||
| 1638 | void EmitImageRead(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, std::string coords) { | 1638 | void EmitImageRead(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords) { |
| 1639 | NotImplemented(); | 1639 | NotImplemented(); |
| 1640 | } | 1640 | } |
| 1641 | 1641 | ||
| 1642 | void EmitImageWrite(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, std::string coords, | 1642 | void EmitImageWrite(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, |
| 1643 | std::string color) { | 1643 | std::string color) { |
| 1644 | NotImplemented(); | 1644 | NotImplemented(); |
| 1645 | } | 1645 | } |
| @@ -1732,57 +1732,57 @@ void EmitBoundImageAtomicExchange32(EmitContext&) { | |||
| 1732 | NotImplemented(); | 1732 | NotImplemented(); |
| 1733 | } | 1733 | } |
| 1734 | 1734 | ||
| 1735 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1735 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1736 | std::string coords, std::string value) { | 1736 | std::string coords, std::string value) { |
| 1737 | NotImplemented(); | 1737 | NotImplemented(); |
| 1738 | } | 1738 | } |
| 1739 | 1739 | ||
| 1740 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1740 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1741 | std::string coords, std::string value) { | 1741 | std::string coords, std::string value) { |
| 1742 | NotImplemented(); | 1742 | NotImplemented(); |
| 1743 | } | 1743 | } |
| 1744 | 1744 | ||
| 1745 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1745 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1746 | std::string coords, std::string value) { | 1746 | std::string coords, std::string value) { |
| 1747 | NotImplemented(); | 1747 | NotImplemented(); |
| 1748 | } | 1748 | } |
| 1749 | 1749 | ||
| 1750 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1750 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1751 | std::string coords, std::string value) { | 1751 | std::string coords, std::string value) { |
| 1752 | NotImplemented(); | 1752 | NotImplemented(); |
| 1753 | } | 1753 | } |
| 1754 | 1754 | ||
| 1755 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1755 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1756 | std::string coords, std::string value) { | 1756 | std::string coords, std::string value) { |
| 1757 | NotImplemented(); | 1757 | NotImplemented(); |
| 1758 | } | 1758 | } |
| 1759 | 1759 | ||
| 1760 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1760 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1761 | std::string coords, std::string value) { | 1761 | std::string coords, std::string value) { |
| 1762 | NotImplemented(); | 1762 | NotImplemented(); |
| 1763 | } | 1763 | } |
| 1764 | 1764 | ||
| 1765 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1765 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1766 | std::string coords, std::string value) { | 1766 | std::string coords, std::string value) { |
| 1767 | NotImplemented(); | 1767 | NotImplemented(); |
| 1768 | } | 1768 | } |
| 1769 | 1769 | ||
| 1770 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1770 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1771 | std::string coords, std::string value) { | 1771 | std::string coords, std::string value) { |
| 1772 | NotImplemented(); | 1772 | NotImplemented(); |
| 1773 | } | 1773 | } |
| 1774 | 1774 | ||
| 1775 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1775 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1776 | std::string coords, std::string value) { | 1776 | std::string coords, std::string value) { |
| 1777 | NotImplemented(); | 1777 | NotImplemented(); |
| 1778 | } | 1778 | } |
| 1779 | 1779 | ||
| 1780 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1780 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1781 | std::string coords, std::string value) { | 1781 | std::string coords, std::string value) { |
| 1782 | NotImplemented(); | 1782 | NotImplemented(); |
| 1783 | } | 1783 | } |
| 1784 | 1784 | ||
| 1785 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | 1785 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1786 | std::string coords, std::string value) { | 1786 | std::string coords, std::string value) { |
| 1787 | NotImplemented(); | 1787 | NotImplemented(); |
| 1788 | } | 1788 | } |
| @@ -1827,22 +1827,22 @@ void EmitSubgroupGeMask(EmitContext& ctx) { | |||
| 1827 | NotImplemented(); | 1827 | NotImplemented(); |
| 1828 | } | 1828 | } |
| 1829 | 1829 | ||
| 1830 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst* inst, std::string value, std::string index, | 1830 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, |
| 1831 | std::string clamp, std::string segmentation_mask) { | 1831 | std::string clamp, std::string segmentation_mask) { |
| 1832 | NotImplemented(); | 1832 | NotImplemented(); |
| 1833 | } | 1833 | } |
| 1834 | 1834 | ||
| 1835 | void EmitShuffleUp(EmitContext& ctx, IR::Inst* inst, std::string value, std::string index, | 1835 | void EmitShuffleUp(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, |
| 1836 | std::string clamp, std::string segmentation_mask) { | 1836 | std::string clamp, std::string segmentation_mask) { |
| 1837 | NotImplemented(); | 1837 | NotImplemented(); |
| 1838 | } | 1838 | } |
| 1839 | 1839 | ||
| 1840 | void EmitShuffleDown(EmitContext& ctx, IR::Inst* inst, std::string value, std::string index, | 1840 | void EmitShuffleDown(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, |
| 1841 | std::string clamp, std::string segmentation_mask) { | 1841 | std::string clamp, std::string segmentation_mask) { |
| 1842 | NotImplemented(); | 1842 | NotImplemented(); |
| 1843 | } | 1843 | } |
| 1844 | 1844 | ||
| 1845 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst* inst, std::string value, std::string index, | 1845 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, |
| 1846 | std::string clamp, std::string segmentation_mask) { | 1846 | std::string clamp, std::string segmentation_mask) { |
| 1847 | NotImplemented(); | 1847 | NotImplemented(); |
| 1848 | } | 1848 | } |