mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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 commitb1ecb90941)
This commit is contained in:
parent
9adf6d9d7e
commit
38ac16dbff
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue