summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-18 03:44:12 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:38 +0200
commita0365217f5b2ec783738af396ebd82f12cffc0b4 (patch)
treec7dd7678fe8a67f10c4990c833a7992e8a72079b
parentshader: Align constant buffer sizes to 16 bytes (diff)
downloadyuzu-a0365217f5b2ec783738af396ebd82f12cffc0b4.tar
yuzu-a0365217f5b2ec783738af396ebd82f12cffc0b4.tar.gz
yuzu-a0365217f5b2ec783738af396ebd82f12cffc0b4.tar.bz2
yuzu-a0365217f5b2ec783738af396ebd82f12cffc0b4.tar.lz
yuzu-a0365217f5b2ec783738af396ebd82f12cffc0b4.tar.xz
yuzu-a0365217f5b2ec783738af396ebd82f12cffc0b4.tar.zst
yuzu-a0365217f5b2ec783738af396ebd82f12cffc0b4.zip
-rw-r--r--src/shader_recompiler/ir_opt/texture_pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cpp
index 737f186ab..44ad10d43 100644
--- a/src/shader_recompiler/ir_opt/texture_pass.cpp
+++ b/src/shader_recompiler/ir_opt/texture_pass.cpp
@@ -434,7 +434,7 @@ void TexturePass(Environment& env, IR::Program& program) {
throw NotImplementedException("Unexpected separate sampler");
}
const bool is_written{inst->GetOpcode() != IR::Opcode::ImageRead};
- const bool is_read{inst->GetOpcode() == IR::Opcode::ImageRead};
+ const bool is_read{inst->GetOpcode() != IR::Opcode::ImageWrite};
if (flags.type == TextureType::Buffer) {
index = descriptors.Add(ImageBufferDescriptor{
.format = flags.image_format,