diff --git a/src/shader_recompiler/frontend/translate/vector_memory.cpp b/src/shader_recompiler/frontend/translate/vector_memory.cpp index e0c64ff4a..72286b29c 100644 --- a/src/shader_recompiler/frontend/translate/vector_memory.cpp +++ b/src/shader_recompiler/frontend/translate/vector_memory.cpp @@ -458,6 +458,7 @@ void Translator::IMAGE_STORE(bool has_mip, const GcnInst& inst) { IR::TextureInstInfo info{}; info.has_lod.Assign(has_mip); info.is_array.Assign(mimg.da); + info.is_r128.Assign(mimg.r128); boost::container::static_vector comps; for (u32 i = 0; i < 4; i++) { diff --git a/src/shader_recompiler/resource.h b/src/shader_recompiler/resource.h index 5d9965105..5ae3179f6 100644 --- a/src/shader_recompiler/resource.h +++ b/src/shader_recompiler/resource.h @@ -86,6 +86,7 @@ struct ImageResource { } else { const auto raw = info.template ReadUdSharp(sharp_idx); std::memcpy(&image, &raw, sizeof(raw)); + image.pitch = image.width; } if (!image.Valid()) { LOG_DEBUG(Render_Vulkan, "Encountered invalid image sharp");