nir: don't use variables as ralloc parents, use the shader instead
so that we can switch variables to gc_ctx Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36538>
This commit is contained in:
@@ -269,7 +269,7 @@ brw_nir_lower_mesh_primitive_count(nir_shader *nir)
|
||||
nir_create_variable_with_location(nir, nir_var_shader_out,
|
||||
VARYING_SLOT_PRIMITIVE_COUNT,
|
||||
glsl_uint_type());
|
||||
nir_variable_set_name(final_primitive_count, "gl_PrimitiveCountNV");
|
||||
nir_variable_set_name(nir, final_primitive_count, "gl_PrimitiveCountNV");
|
||||
final_primitive_count->data.interpolation = INTERP_MODE_NONE;
|
||||
|
||||
nir_store_var(b, final_primitive_count,
|
||||
|
||||
Reference in New Issue
Block a user