i965: Use a uniform for gl_PatchVerticesIn in the TCS on Gen8+.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 1 Jun 2016 07:08:55 +0000 (00:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 15 Jun 2016 19:47:37 +0000 (12:47 -0700)
commitc319512e16f19bf1f558670981bbb4af510ba9f4
treec4cbb1aeacdb25fc37eebf194d9a5be2d865ddf8
parent2b867264d2cce59bd65bd3599ff0e3c5439bc9d4
i965: Use a uniform for gl_PatchVerticesIn in the TCS on Gen8+.

We still need to recompile the passthrough shader when this value
changes, as it also affects the output vertex count.  But otherwise,
we can eliminate recompiles on Gen8+.

We probably want to do this for Gen7 as well, but that requires
rewriting the input release code to use a loop, which is a trade-off
I'd need to consider in more detail.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_tcs.c