r600: Fix reporting TGSI IR support

When NIR is not explicitely enabled we still support TGSI.

Fixes: 33765aa92a
    r600/sfn: Enable NIR for pre RG hardware

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18212>
This commit is contained in:
Gert Wollny
2022-08-23 16:21:39 +02:00
committed by Marge Bot
parent c81fe5b235
commit 90f99369ae
+1 -1
View File
@@ -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;