diff options
author | Iago Toral Quiroga <[email protected]> | 2018-01-09 11:14:01 +0100 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2018-01-10 08:21:02 +0100 |
commit | 9ef5b3d5175d72377aba95c23ec5cc64be31c1ad (patch) | |
tree | 8be6dbb61a8e05e787466c8a7b7378ed41c37eef /src/amd/vulkan/radv_meta_blit.c | |
parent | 7e5c81235ff774ab463596222eac0e8141a90d1a (diff) |
i965/nir: lower TES PatchVerticesIn to a constant when a TCS is present
When a TCS is present at link time we know the number of vertices in the
patch and we can lower gl_PatchVerticesIn in the TesEval stage directly
to a constant. We already have a pass for this that we use in the
Vulkan pipeline, so we just reuse that.
Notice that the GLSL linker also implements this optimization, which
we are not removing because other drivers may still depend on it, so
this should only be useful for OpenGL SPIR-V shaders for now.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_blit.c')
0 files changed, 0 insertions, 0 deletions