mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
vc4: Initialize pack field of qreg to 0 in qir_get_temp
This avoids generation of undefined packing in qir and qpu instructions, fixing a lot of rendering errors. Fixes8b36d107fd(vc4: Pack the unorm-packing bits into a src MUL instruction when possible.) Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit48de40ce9c)
This commit is contained in:
parent
a6710090af
commit
0b14d35863
1 changed files with 1 additions and 0 deletions
|
|
@ -314,6 +314,7 @@ qir_get_temp(struct vc4_compile *c)
|
|||
|
||||
reg.file = QFILE_TEMP;
|
||||
reg.index = c->num_temps++;
|
||||
reg.pack = 0;
|
||||
|
||||
if (c->num_temps > c->defs_array_size) {
|
||||
uint32_t old_size = c->defs_array_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue