Module: Mesa Branch: main Commit: a76cb87602fc318e964f982cdee319b1b21f155c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a76cb87602fc318e964f982cdee319b1b21f155c
Author: Anthony Roberts <anthony.robe...@linaro.org> Date: Fri Nov 17 13:46:22 2023 +0000 glsl: Use unsigned instead of enum type in ir_variable_data Reviewed-by: Jesse Natalie <jenat...@microsoft.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26254> --- src/compiler/glsl/ast_to_hir.cpp | 4 ++-- src/compiler/glsl/ir.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp index 7d125a127cb..bb872cf8ac1 100644 --- a/src/compiler/glsl/ast_to_hir.cpp +++ b/src/compiler/glsl/ast_to_hir.cpp @@ -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; diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index c02fd143736..b921714062b 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -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.