diff options
author | Kenneth Graunke <[email protected]> | 2018-07-18 16:42:03 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2018-07-26 21:51:36 -0700 |
commit | 488972222c6454551ab1559f753c13a493dc513f (patch) | |
tree | 8a82f16349438be19eb29e611c961654b0010ff6 /src/intel/tools | |
parent | 29dd5dda9d189eebb2d14de71e3fe30722e72743 (diff) |
i965: Combine both gl_PatchVerticesIn lowering passes.
Until now, we had separate passes for lowering gl_PatchVerticesIn to
a statically known constant (for TES inputs when linked against a TCS),
and a uniform in the other cases. Annoyingly, one had to be run before
nir_lower_system_values, and the other afterward. This simplified the
passes, but made life painful for the callers.
This patch combines both into a single pass. If you give it a non-zero
static count, it uses that. If you give it Mesa state slots, it turns
it back into a built-in uniform. Otherwise, it does nothing.
This also moves the i965 uniform lowering out to shared code.
v2: Make token arrays const.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/intel/tools')
0 files changed, 0 insertions, 0 deletions