mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
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:
parent
cb019ff926
commit
a76cb87602
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue