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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user