tgsi: use enum for shader-type

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24002>
This commit is contained in:
Erik Faye-Lund
2023-06-26 11:30:57 +02:00
committed by Marge Bot
parent e4b86e76cf
commit 733ed06e94

View File

@@ -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;