radeonsi: Consider input SGPR count for compute shader SGPR count.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 19 Apr 2016 12:08:13 +0000 (14:08 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 19 Apr 2016 16:31:23 +0000 (18:31 +0200)
commit1f32d5d59fff7a4ef42cd2811ef4116c5827b9a0
tree02c9f497de93d7f141d10d746bb6472cfa23b5cc
parent6c833ba1ab7ffe615d8c025a7452984083c1143b
radeonsi: Consider input SGPR count for compute shader SGPR count.

si_shader_create corrects the SGPR count with si_fix_num_sgprs. We then
recompute the rsrc1 register to use the new SGPR count.

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_compute.c
src/gallium/drivers/radeonsi/si_shader.c