mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 13:00:21 +01:00
radv: use NIR_PASS with radv_export_implicit_primitive_id
For consistency. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18138>
This commit is contained in:
parent
2167a61611
commit
f461fa1933
1 changed files with 2 additions and 1 deletions
|
|
@ -2682,7 +2682,8 @@ radv_link_shaders(struct radv_pipeline *pipeline,
|
|||
!(stages[last_vgt_api_stage].nir->info.outputs_written & VARYING_BIT_PRIMITIVE_ID) &&
|
||||
((last_vgt_api_stage == MESA_SHADER_VERTEX && !stages[MESA_SHADER_VERTEX].info.is_ngg) ||
|
||||
(last_vgt_api_stage == MESA_SHADER_TESS_EVAL && !stages[MESA_SHADER_TESS_EVAL].info.is_ngg))) {
|
||||
radv_export_implicit_primitive_id(stages[last_vgt_api_stage].nir);
|
||||
nir_shader *last_vgt_shader = stages[last_vgt_api_stage].nir;
|
||||
NIR_PASS(_, last_vgt_shader, radv_export_implicit_primitive_id);
|
||||
}
|
||||
|
||||
if (!optimize_conservatively) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue