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:
Boris Brezillon 2021-04-22 12:21:31 +02:00 committed by Marge Bot
parent 51836a2be9
commit c09439721c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}