tgsi: fixes error: ‘enum pipe_shader_type’ declared in tgsi_info.h

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>
This commit is contained in:
Yonggang Luo
2022-11-07 13:53:53 +08:00
committed by Marge Bot
parent 887e0fdace
commit 2f42ffcd02
+1
View 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"