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/vulkan/anv_pipeline.c | |
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/vulkan/anv_pipeline.c')
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 9972db88f04..fa3d3e7a309 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -684,8 +684,8 @@ anv_pipeline_compile_tcs_tes(struct anv_pipeline *pipeline, return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); } - nir_lower_tes_patch_vertices(tes_nir, - tcs_nir->info.tess.tcs_vertices_out); + nir_lower_patch_vertices(tes_nir, tcs_nir->info.tess.tcs_vertices_out, + NULL); /* Copy TCS info into the TES info */ merge_tess_info(&tes_nir->info, &tcs_nir->info); |