glsl: fix gl_ViewID_OVR type to uint

the spec defines this as a uint, and having it as an int breaks anyone
trying to actually use it

cc: mesa-stable

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37766>
This commit is contained in:
Mike Blumenkrantz 2025-10-08 09:13:58 -04:00 committed by Marge Bot
parent 390b5e6150
commit 8f0ac427b3

View file

@ -1135,7 +1135,7 @@ builtin_variable_generator::generate_special_vars()
add_system_value(SYSTEM_VALUE_SUBGROUP_LT_MASK, uvec4_t, "gl_SubgroupLtMask");
}
if (state->is_version(130, 300) && state->OVR_multiview_enable) {
add_system_value(SYSTEM_VALUE_VIEW_INDEX, int_t, GLSL_PRECISION_MEDIUM,
add_system_value(SYSTEM_VALUE_VIEW_INDEX, uint_t, GLSL_PRECISION_MEDIUM,
"gl_ViewID_OVR");
}
}