i965: update gl_PrimitiveIDIn to be a system variable
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 25 Oct 2016 10:55:17 +0000 (21:55 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Fri, 11 Nov 2016 09:39:09 +0000 (20:39 +1100)
commite36f0878cf391c2ae4a12f7fed22c64b9d215100
tree4243e777b49f99fb85e5627b74fc4a0b727ac79c
parent00620782c92100d77c660f9783504c6d80fa1d58
i965: update gl_PrimitiveIDIn to be a system variable

Now that we have switched to using nir_shader_gather_info() we
can remove the hacks and just use the system variable.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp