radeonsi: remove VS epilog code, compile VS with PrimID export on demand
authorMarek Olšák <marek.olsak@amd.com>
Sat, 22 Apr 2017 16:04:00 +0000 (18:04 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 28 Apr 2017 19:47:35 +0000 (21:47 +0200)
commit9fd9a7d0ba39ed2328b1d48cd8ae83f070202f51
tree9da9804d307111c52af451896e85aa621d63b255
parent3b2e93e472d185a5df5ec3c3d23c8744a0c23e42
radeonsi: remove VS epilog code, compile VS with PrimID export on demand

The use of PrimID in the pixel shader is too rare to deserve such
a sizable support code.

The initial idea of the VS epilog was to move the clipping code there and
remove it based on states, but optimized variants are now used to do that
and are easier to support, so the VS epilog has turned out to be not so
useful.

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