Skip to content

Commit e6d723c

Browse files
committed
rsx: Fix 16-bit format hardware deswizzle
1 parent 400b4e7 commit e6d723c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpcs3/Emu/RSX/Program/GLSLSnippets/GPUDeswizzle.glsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void write16(inout uint accumulator, const in uint subword, const in uint src_id
110110

111111
if (subword == 1)
112112
{
113-
data_out[dst_id / 2] = accumulator;
113+
data_out[dst_id / 2] = %f(accumulator);
114114
}
115115
}
116116

@@ -167,7 +167,7 @@ void main()
167167
#if USE_8BIT_ADDRESSING
168168
for (uint subword = 0, accumulator = 0; subword < 4; ++subword, ++x) {
169169
#elif USE_16BIT_ADDRESSING
170-
for (uint subword = 0, temp = 0; subword < 2; ++subword, ++x) {
170+
for (uint subword = 0, accumulator = 0; subword < 2; ++subword, ++x) {
171171
#endif
172172

173173
uint src_texel_id = get_z_index(x, y, z);

0 commit comments

Comments
 (0)