mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-08 10:01:28 -06:00
Merge 6883805c14 into e64f038ad6
This commit is contained in:
commit
b8430e47ec
@ -226,7 +226,12 @@ Id EmitImageRead(EmitContext& ctx, IR::Inst* inst, u32 handle, Id coords, Id lod
|
||||
Id texel;
|
||||
if (!texture.is_storage) {
|
||||
const Id image = ctx.OpLoad(texture.image_type, texture.id);
|
||||
operands.Add(spv::ImageOperandsMask::Lod, lod);
|
||||
if (texture.view_type != AmdGpu::ImageType::Color2DMsaa) {
|
||||
if (Sirit::ValidId(ms)) {
|
||||
LOG_ERROR(Render_Recompiler, "image is not MS but ms operand is provided");
|
||||
}
|
||||
operands.Add(spv::ImageOperandsMask::Lod, lod);
|
||||
}
|
||||
texel = ctx.OpImageFetch(color_type, image, coords, operands.mask, operands.operands);
|
||||
} else {
|
||||
Id image_ptr = texture.id;
|
||||
|
||||
@ -1051,7 +1051,7 @@ void PatchImageSampleArgs(IR::Block& block, IR::Inst& inst, Info& info,
|
||||
|
||||
auto texel = [&] -> IR::Value {
|
||||
if (is_msaa) {
|
||||
return ir.ImageRead(handle, coords, ir.Imm32(0U), ir.Imm32(0U), inst_info);
|
||||
return ir.ImageRead(handle, coords, {}, ir.Imm32(0U), inst_info);
|
||||
}
|
||||
if (inst_info.is_gather) {
|
||||
if (inst_info.is_depth) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user