radeonsi: skip generic out/in indices without a shader IO index
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 10 May 2017 11:26:39 +0000 (13:26 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 12 May 2017 08:46:05 +0000 (10:46 +0200)
commitcfe6e30f1b74cc5617791aad9188f6cd4a07b78d
treeadf727f4324dff3223b36c758d55c435ba2324c0
parent7091fe887b3b676fe70c44ff10e5027f4b44513d
radeonsi: skip generic out/in indices without a shader IO index

OpenGL uses at most 32 generic outputs/inputs in any stage, and they always
have a shader IO index and therefore fit into the outputs_written/
inputs_read/kill_outputs fields.

However, Nine uses semantic indices more liberally. We support that
in VS-PS pipelines, except that the optimization of killing outputs
must be skipped.

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_state_shaders.c