glsl: Use unsigned instead of enum type in ir_variable_data

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26254>
This commit is contained in:
Anthony Roberts 2023-11-17 13:46:22 +00:00 committed by Marge Bot
parent cb019ff926
commit a76cb87602
2 changed files with 3 additions and 3 deletions

View file

@ -4509,8 +4509,8 @@ get_variable_being_redeclared(ir_variable **var_ptr, YYLTYPE loc,
"gl_FragDepth: depth layout is declared here "
"as '%s, but it was previously declared as "
"'%s'",
depth_layout_string(var->data.depth_layout),
depth_layout_string(earlier->data.depth_layout));
depth_layout_string((ir_depth_layout)var->data.depth_layout),
depth_layout_string((ir_depth_layout)earlier->data.depth_layout));
}
earlier->data.depth_layout = var->data.depth_layout;

View file

@ -825,7 +825,7 @@ public:
* This is not equal to \c ir_depth_layout_none if and only if this
* variable is \c gl_FragDepth and a layout qualifier is specified.
*/
ir_depth_layout depth_layout:3;
unsigned depth_layout:3; /*ir_depth_layout*/
/**
* Memory qualifiers.