pan/mdg: Keep min_bound at 16 when alignment requires it

Otherwise LCRA will try to divide by zero when calculating m_max.

Fixes: 553c2cf16b ("pan/mdg: Set RA bounds for fp16")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16382>
(cherry picked from commit b1ecb90941)
This commit is contained in:
Icecream95 2022-05-10 10:40:49 +12:00 committed by Dylan Baker
parent 9adf6d9d7e
commit 38ac16dbff
2 changed files with 2 additions and 2 deletions

View file

@ -697,7 +697,7 @@
"description": "pan/mdg: Keep min_bound at 16 when alignment requires it",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "553c2cf16b7612d4a70bd96230dad63777ec867e"
},

View file

@ -543,7 +543,7 @@ allocate_registers(compiler_context *ctx, bool *spilled)
3; /* 8-bit todo */
/* We can't cross xy/zw boundaries. TODO: vec8 can */
if (size == 16)
if (size == 16 && min_alignment[dest] != 4)
min_bound[dest] = 8;
mir_foreach_src(ins, s) {