radeonsi: add support for gl_PrimitiveID in the fragment shader
authorMarek Olšák <marek.olsak@amd.com>
Sun, 9 Aug 2015 23:50:11 +0000 (01:50 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 12 Aug 2015 23:25:26 +0000 (01:25 +0200)
commite7a52a5cb810de49a8282cb9f9caea5d554c3348
treec2a208dbe6ef29c22eff4acfd53103bd33c13e07
parent8e11be0ddb0920633c5fab8d6a6460b7591a2627
radeonsi: add support for gl_PrimitiveID in the fragment shader

It must be obtained from the VS.

The GS scenario A must be enabled for PrimID to be generated for the VS.

+ 4 piglits

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state_shaders.c