radeonsi: store group_size_variable in struct si_compute
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 18 Nov 2016 14:18:10 +0000 (15:18 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 21 Nov 2016 07:19:43 +0000 (08:19 +0100)
commit42d5e91a2ae235c007c5d17935be9bb1c4ff388e
tree140cf7ad838ab2dae0338baebbca628b1fcfa9cd
parent47db6b4600cfd3919c6120d392950d624b5a6ea7
radeonsi: store group_size_variable in struct si_compute

For compute shaders, we free the selector after the shader has been
compiled, so we need to save this bit somewhere else.  Also, make sure that
this type of bug cannot re-appear, by NULL-ing the selector pointer after
we're done with it.

This bug has been there since the feature was added, but was only exposed
in piglit arb_compute_variable_group_size-local-size by commit
9bfee7047b70cb0aa026ca9536465762f96cb2b1 (which is totally unrelated).

Cc: 13.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_compute.c