OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 17 Jun 2016 13:37:06 +0000 (14:37 +0100)
commitdab4a6001b2fc312571bfc8ee48ec08049946ebc
tree3e48629b48fcdb74645f683c9634961c06a9a6e9
parent286ed3aff064768a816edc6d31ebede8c47b6e52
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
(cherry picked from commit c319512e16f19bf1f558670981bbb4af510ba9f4)
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_tcs.c