mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-14 11:28:19 +02:00
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:
parent
14ba56718f
commit
11ced35e0a
1 changed files with 0 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue