ac/nir/ngg: Don't create dummy output variable for primitive ID.

This was needed by RADV in the past, but not anymore.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28553>
This commit is contained in:
Timur Kristóf 2024-04-03 18:57:59 +02:00
parent 14ba56718f
commit 11ced35e0a

View file

@ -2472,10 +2472,6 @@ ac_nir_lower_ngg_nogs(nir_shader *shader, const ac_nir_lower_ngg_options *option
options->export_primitive_id && shader->info.stage == MESA_SHADER_VERTEX;
if (options->export_primitive_id) {
nir_variable *prim_id_var = nir_variable_create(shader, nir_var_shader_out, glsl_uint_type(), "ngg_prim_id");
prim_id_var->data.location = VARYING_SLOT_PRIMITIVE_ID;
prim_id_var->data.driver_location = VARYING_SLOT_PRIMITIVE_ID;
prim_id_var->data.interpolation = INTERP_MODE_NONE;
shader->info.outputs_written |= VARYING_BIT_PRIMITIVE_ID;
}