mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
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>
(cherry picked from commit 8f0ac427b3)
This commit is contained in:
parent
05253f4531
commit
04ded2041c
2 changed files with 2 additions and 2 deletions
|
|
@ -3764,7 +3764,7 @@
|
|||
"description": "glsl: fix gl_ViewID_OVR type to uint",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1131,7 +1131,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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue