vc4: Initialize pack field of qreg to 0 in qir_get_temp
authorBoyan Ding <boyan.j.ding@gmail.com>
Wed, 26 Aug 2015 11:52:50 +0000 (19:52 +0800)
committerEric Anholt <eric@anholt.net>
Fri, 4 Sep 2015 19:16:07 +0000 (12:16 -0700)
commit48de40ce9c45de154965490843f9e50407970c26
tree5db3a0e3e4276501b7c8ab7dcd16d427c81adf6e
parent099f5b3a62be1919add02a4cb887841c9f0f2fe4
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.

Fixes 8b36d107fdd (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>
src/gallium/drivers/vc4/vc4_qir.c