radeonsi: clamp indirect index to the number of declared shader resources
authorMarek Olšák <marek.olsak@amd.com>
Wed, 17 May 2017 19:11:13 +0000 (21:11 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 18 May 2017 20:15:02 +0000 (22:15 +0200)
commitb8f8d9e46c6ac625928c9b098491fa26e4cf8f71
treee737dd133f4cea60b253e16df0a07e61b10f03bc
parentf07c15ef807fb50659bf7a648393991f582f6a7f
radeonsi: clamp indirect index to the number of declared shader resources

We'll do partial uploads of descriptor arrays, so we need to clamp
against what shaders declare.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader_internal.h
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c