tgsi: fixes error: ‘enum pipe_shader_type’ declared in tgsi_info.h
authorYonggang Luo <luoyonggang@gmail.com>
Mon, 7 Nov 2022 05:53:53 +0000 (13:53 +0800)
committerMarge Bot <emma+marge@anholt.net>
Sat, 19 Nov 2022 01:37:46 +0000 (01:37 +0000)
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 <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19676>

src/gallium/auxiliary/tgsi/tgsi_info.h

index 40ff9bc..23841b2 100644 (file)
@@ -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"