pan/midg: Fix midgard_pack_common_store_mask()
st_u64() gets an invalid mask when component Y is written. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10332>
This commit is contained in:
parent
51836a2be9
commit
c09439721c
|
@ -449,7 +449,7 @@ midgard_pack_common_store_mask(midgard_instruction *ins) {
|
|||
if (comp_sz == total_sz)
|
||||
packed |= 0xF;
|
||||
else if (comp_sz == total_sz / 2)
|
||||
packed |= 0x3 << i;
|
||||
packed |= 0x3 << (i * 2);
|
||||
else if (comp_sz == total_sz / 4)
|
||||
packed |= 0x1 << i;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue