mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-09 15:29:08 +01:00
emit_glsl_floating_point: Fix FPNeg on newer Nvidia drivers
This commit is contained in:
parent
8a48c4ed1c
commit
640fc1418b
1 changed files with 2 additions and 2 deletions
|
@ -125,11 +125,11 @@ void EmitFPNeg16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& i
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitFPNeg32(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
|
void EmitFPNeg32(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
|
||||||
ctx.AddF32("{}=-({});", inst, value);
|
ctx.AddF32("{}=0.f-({});", inst, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitFPNeg64(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
|
void EmitFPNeg64(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
|
||||||
ctx.AddF64("{}=-({});", inst, value);
|
ctx.AddF64("{}=double(0.)-({});", inst, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitFPSin(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
|
void EmitFPSin(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
|
||||||
|
|
Loading…
Reference in a new issue