summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-03-30 19:20:59 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:25 +0200
commit67afdaf56622d9e4129dfae42abfa743a4b025d4 (patch)
tree1ece321c6aa079b7d67d977268434a6cd049af9a
parentshader: Address feedback (diff)
downloadyuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar
yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar.gz
yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar.bz2
yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar.lz
yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar.xz
yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar.zst
yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.zip
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_image.cpp2
-rw-r--r--src/shader_recompiler/frontend/ir/opcodes.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp
index 03d2ec73e..bc7de509b 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp
@@ -71,7 +71,7 @@ public:
explicit ImageOperands(EmitContext& ctx, bool has_lod_clamp, Id derivates, u32 num_derivates,
Id offset, Id lod_clamp) {
- if (Sirit::ValidId(derivates)) {
+ if (!Sirit::ValidId(derivates)) {
throw LogicError("Derivates must be present");
}
boost::container::static_vector<Id, 3> deriv_x_accum;
diff --git a/src/shader_recompiler/frontend/ir/opcodes.inc b/src/shader_recompiler/frontend/ir/opcodes.inc
index e82db0cd2..ffd0cc690 100644
--- a/src/shader_recompiler/frontend/ir/opcodes.inc
+++ b/src/shader_recompiler/frontend/ir/opcodes.inc
@@ -403,7 +403,7 @@ OPCODE(ImageGatherDref, F32x4, U32,
OPCODE(ImageFetch, F32x4, U32, Opaque, Opaque, U32, Opaque, )
OPCODE(ImageQueryDimensions, U32x4, U32, U32, )
OPCODE(ImageQueryLod, F32x4, U32, Opaque, )
-OPCODE(ImageGradient, F32x4, U32, Opaque, Opaque, Opaque, F32, )
+OPCODE(ImageGradient, F32x4, U32, Opaque, Opaque, Opaque, Opaque, )
// Warp operations
OPCODE(VoteAll, U1, U1, )