From 2f42ffcd028d2c53cf7feaf69067f2664fc5b2bb Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Mon, 7 Nov 2022 13:53:53 +0800 Subject: [PATCH] =?UTF-8?q?tgsi:=20fixes=20error:=20=E2=80=98enum=20pipe?= =?UTF-8?q?=5Fshader=5Ftype=E2=80=99=20declared=20=20in=20tgsi=5Finfo.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error message: ../../src/gallium/auxiliary/tgsi/tgsi_info.h:92:30: error: ‘enum pipe_shader_type’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 92 | tgsi_get_processor_name(enum pipe_shader_type processor); Signed-off-by: Yonggang Luo Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/tgsi/tgsi_info.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.h b/src/gallium/auxiliary/tgsi/tgsi_info.h index 40ff9bc1172..23841b2bc39 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_info.h +++ b/src/gallium/auxiliary/tgsi/tgsi_info.h @@ -28,6 +28,7 @@ #ifndef TGSI_INFO_H #define TGSI_INFO_H +#include "compiler/shader_enums.h" #include "pipe/p_compiler.h" #include "pipe/p_shader_tokens.h" #include "util/format/u_format.h"