diff options
Diffstat (limited to 'src/compiler/nir/nir_lower_point_size_mov.c')
-rw-r--r-- | src/compiler/nir/nir_lower_point_size_mov.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_lower_point_size_mov.c b/src/compiler/nir/nir_lower_point_size_mov.c index 6c1c16c749a..23d971d712a 100644 --- a/src/compiler/nir/nir_lower_point_size_mov.c +++ b/src/compiler/nir/nir_lower_point_size_mov.c @@ -55,9 +55,8 @@ lower_impl(nir_function_impl *impl, * and only emit that one for xfb */ if (!out || out->data.explicit_location) { - new_out = nir_variable_create(shader, nir_var_shader_out, - glsl_float_type(), "gl_PointSizeMESA"); - new_out->data.location = VARYING_SLOT_PSIZ; + new_out = nir_create_variable_with_location(shader, nir_var_shader_out, + VARYING_SLOT_PSIZ, glsl_float_type()); } |