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)
commit2f42ffcd028d2c53cf7feaf69067f2664fc5b2bb
treeb4ef7e4da9f17237cbf4cad6d6e854223305273b
parent887e0fdace63b80a9e42ef299381ca3eeee89aab
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>
src/gallium/auxiliary/tgsi/tgsi_info.h