etnaviv: Clear lbl_usage array correctly
authorWladimir J. van der Laan <laanwj@gmail.com>
Sun, 23 Jul 2017 11:24:39 +0000 (13:24 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Sun, 23 Jul 2017 19:52:44 +0000 (21:52 +0200)
commit15a1ceb127b70ac98b03cae051927f75fb7ee204
treef07e6f65a837dae914a1ef60974e157c7aea41a5
parent6874b953f6f9762fd8e7abf959aed09ab15693c5
etnaviv: Clear lbl_usage array correctly

Fill the entire array instead of just a quarter. This avoids
crashes with large shaders.
(currently this never causes a problem because shaders larger than 2048/4
instructions are not supported by this driver on any hardware, but it will
cause problems in the future)

Fixes: ec436051899 ("etnaviv: fix shader miscompilation with more than 16 labels")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_compiler.c