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:

committed by
Marge Bot

parent
e4b86e76cf
commit
733ed06e94
@@ -331,7 +331,7 @@ static void report_error( struct translate_ctx *ctx, const char *msg )
|
|||||||
*/
|
*/
|
||||||
static bool parse_header( struct translate_ctx *ctx )
|
static bool parse_header( struct translate_ctx *ctx )
|
||||||
{
|
{
|
||||||
uint processor;
|
enum pipe_shader_type processor;
|
||||||
|
|
||||||
if (str_match_nocase_whole( &ctx->cur, "FRAG" ))
|
if (str_match_nocase_whole( &ctx->cur, "FRAG" ))
|
||||||
processor = PIPE_SHADER_FRAGMENT;
|
processor = PIPE_SHADER_FRAGMENT;
|
||||||
|
Reference in New Issue
Block a user