rsx: Fix 16-bit format hardware deswizzle
This commit is contained in:
@@ -110,7 +110,7 @@ void write16(inout uint accumulator, const in uint subword, const in uint src_id
|
|||||||
|
|
||||||
if (subword == 1)
|
if (subword == 1)
|
||||||
{
|
{
|
||||||
data_out[dst_id / 2] = accumulator;
|
data_out[dst_id / 2] = %f(accumulator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ void main()
|
|||||||
#if USE_8BIT_ADDRESSING
|
#if USE_8BIT_ADDRESSING
|
||||||
for (uint subword = 0, accumulator = 0; subword < 4; ++subword, ++x) {
|
for (uint subword = 0, accumulator = 0; subword < 4; ++subword, ++x) {
|
||||||
#elif USE_16BIT_ADDRESSING
|
#elif USE_16BIT_ADDRESSING
|
||||||
for (uint subword = 0, temp = 0; subword < 2; ++subword, ++x) {
|
for (uint subword = 0, accumulator = 0; subword < 2; ++subword, ++x) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint src_texel_id = get_z_index(x, y, z);
|
uint src_texel_id = get_z_index(x, y, z);
|
||||||
|
|||||||
Reference in New Issue
Block a user