mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-03-26 20:58:32 -06:00
fixup r128 (#4100)
This commit is contained in:
parent
14450d330f
commit
89e74828e6
@ -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++) {
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user