Mesa (main): mesa/st: declare added pointsize var as hidden
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Apr 8 02:28:11 UTC 2022
Module: Mesa
Branch: main
Commit: 3aa449ff72838fc6c18f32cf1513682567bdf155
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3aa449ff72838fc6c18f32cf1513682567bdf155
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Mar 30 12:46:21 2022 -0400
mesa/st: declare added pointsize var as hidden
ensure this isn't counted as part of the shader and ignored for e.g.,
glGetProgramInterfaceiv
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15699>
---
src/mesa/state_tracker/st_glsl_to_nir.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp
index defa0d97aa4..35a9c6b3956 100644
--- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
@@ -260,6 +260,7 @@ st_nir_add_point_size(nir_shader *nir)
{
nir_variable *psiz = nir_variable_create(nir, nir_var_shader_out, glsl_float_type(), "gl_PointSizeMESA");
psiz->data.location = VARYING_SLOT_PSIZ;
+ psiz->data.how_declared = nir_var_hidden;
nir_builder b;
nir_function_impl *impl = nir_shader_get_entrypoint(nir);
More information about the mesa-commit
mailing list