mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
nvk: Move nir_lower_patch_vertices to nvk_lower_nir()
As long as it happens after we merge tess info between the two stages (it does) then there's no need to have it in the pipeline code. It's just an optimization anyway. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27024>
This commit is contained in:
parent
bd76444257
commit
839629634f
2 changed files with 5 additions and 1 deletions
|
|
@ -224,7 +224,6 @@ nvk_graphics_pipeline_create(struct nvk_device *dev,
|
|||
}
|
||||
|
||||
if (nir[MESA_SHADER_TESS_CTRL] && nir[MESA_SHADER_TESS_EVAL]) {
|
||||
nir_lower_patch_vertices(nir[MESA_SHADER_TESS_EVAL], nir[MESA_SHADER_TESS_CTRL]->info.tess.tcs_vertices_out, NULL);
|
||||
merge_tess_info(&nir[MESA_SHADER_TESS_EVAL]->info, &nir[MESA_SHADER_TESS_CTRL]->info);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -365,6 +365,11 @@ nvk_lower_nir(struct nvk_device *dev, nir_shader *nir,
|
|||
});
|
||||
}
|
||||
|
||||
if (nir->info.stage == MESA_SHADER_TESS_EVAL) {
|
||||
NIR_PASS(_, nir, nir_lower_patch_vertices,
|
||||
nir->info.tess.tcs_vertices_out, NULL);
|
||||
}
|
||||
|
||||
const struct lower_ycbcr_state ycbcr_state = {
|
||||
.set_layout_count = set_layout_count,
|
||||
.set_layouts = set_layouts,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue