From 733ed06e94038d35da5be4f5cb305554e36451df Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 26 Jun 2023 11:30:57 +0200 Subject: [PATCH] tgsi: use enum for shader-type Reviewed-by: Yonggang Luo Part-of: --- src/gallium/auxiliary/tgsi/tgsi_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c index 8e9914fcd07..11ab80322cb 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_text.c +++ b/src/gallium/auxiliary/tgsi/tgsi_text.c @@ -331,7 +331,7 @@ static void report_error( struct translate_ctx *ctx, const char *msg ) */ static bool parse_header( struct translate_ctx *ctx ) { - uint processor; + enum pipe_shader_type processor; if (str_match_nocase_whole( &ctx->cur, "FRAG" )) processor = PIPE_SHADER_FRAGMENT;