mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-02 04:38:28 -06:00
Merge branch 'main' into user_and_settings
This commit is contained in:
commit
b20f3a9ceb
@ -458,6 +458,7 @@ void Translator::IMAGE_STORE(bool has_mip, const GcnInst& inst) {
|
|||||||
IR::TextureInstInfo info{};
|
IR::TextureInstInfo info{};
|
||||||
info.has_lod.Assign(has_mip);
|
info.has_lod.Assign(has_mip);
|
||||||
info.is_array.Assign(mimg.da);
|
info.is_array.Assign(mimg.da);
|
||||||
|
info.is_r128.Assign(mimg.r128);
|
||||||
|
|
||||||
boost::container::static_vector<IR::F32, 4> comps;
|
boost::container::static_vector<IR::F32, 4> comps;
|
||||||
for (u32 i = 0; i < 4; i++) {
|
for (u32 i = 0; i < 4; i++) {
|
||||||
|
|||||||
@ -86,6 +86,7 @@ struct ImageResource {
|
|||||||
} else {
|
} else {
|
||||||
const auto raw = info.template ReadUdSharp<u128>(sharp_idx);
|
const auto raw = info.template ReadUdSharp<u128>(sharp_idx);
|
||||||
std::memcpy(&image, &raw, sizeof(raw));
|
std::memcpy(&image, &raw, sizeof(raw));
|
||||||
|
image.pitch = image.width;
|
||||||
}
|
}
|
||||||
if (!image.Valid()) {
|
if (!image.Valid()) {
|
||||||
LOG_DEBUG(Render_Vulkan, "Encountered invalid image sharp");
|
LOG_DEBUG(Render_Vulkan, "Encountered invalid image sharp");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user