From 90f99369aeccf2a52495319930ff23b8ffa2a691 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 23 Aug 2022 16:21:39 +0200 Subject: [PATCH] r600: Fix reporting TGSI IR support When NIR is not explicitely enabled we still support TGSI. Fixes: 33765aa92aa5c150873fc210e9d6c1fe22cf8646 r600/sfn: Enable NIR for pre RG hardware Signed-off-by: Gert Wollny Reviewed-by: Filip Gawin Part-of: --- src/gallium/drivers/r600/r600_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 523b8b35c63..d0a880b8e98 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -629,8 +629,8 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, int ir = 0; if (shader == PIPE_SHADER_COMPUTE) ir = 1 << PIPE_SHADER_IR_NATIVE; + ir |= 1 << PIPE_SHADER_IR_TGSI; if (is_nir_enabled(&rscreen->b)) { - ir |= 1 << PIPE_SHADER_IR_TGSI; ir |= 1 << PIPE_SHADER_IR_NIR; } return ir;