mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 23:28:45 +00:00
shader_recompiler: Use correct integer type for OpImageWrite.
This commit is contained in:
parent
c27d79c2e7
commit
47e57174aa
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ void EmitStoreBufferFormatF32(EmitContext& ctx, IR::Inst* inst, u32 handle, Id a
|
||||||
const Id tex_buffer = ctx.OpLoad(buffer.image_type, buffer.id);
|
const Id tex_buffer = ctx.OpLoad(buffer.image_type, buffer.id);
|
||||||
const Id coord = ctx.OpIAdd(ctx.U32[1], address, buffer.coord_offset);
|
const Id coord = ctx.OpIAdd(ctx.U32[1], address, buffer.coord_offset);
|
||||||
if (buffer.is_integer) {
|
if (buffer.is_integer) {
|
||||||
value = ctx.OpBitcast(ctx.S32[4], value);
|
value = ctx.OpBitcast(buffer.result_type, value);
|
||||||
}
|
}
|
||||||
ctx.OpImageWrite(tex_buffer, coord, value);
|
ctx.OpImageWrite(tex_buffer, coord, value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue