fixup r128 (#4100)

This commit is contained in:
Pavel 2026-03-05 23:44:37 +03:00 committed by GitHub
parent 14450d330f
commit 89e74828e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -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<IR::F32, 4> comps;
for (u32 i = 0; i < 4; i++) {

View File

@ -86,6 +86,7 @@ struct ImageResource {
} else {
const auto raw = info.template ReadUdSharp<u128>(sharp_idx);
std::memcpy(&image, &raw, sizeof(raw));
image.pitch = image.width;
}
if (!image.Valid()) {
LOG_DEBUG(Render_Vulkan, "Encountered invalid image sharp");