radeonsi: be able to use aco compiler for mono ps

Need to set AMD_DEBUG=useaco environment variable.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22573>
This commit is contained in:
Qiang Yu 2023-04-27 19:55:25 +08:00 committed by Marge Bot
parent 288adae512
commit d1dd36a74e

View file

@ -2320,7 +2320,13 @@ static void si_determine_use_aco(struct si_shader *shader)
if (!(sel->screen->debug_flags & DBG(USE_ACO)))
return;
shader->use_aco = false;
switch (sel->stage) {
case MESA_SHADER_FRAGMENT:
shader->use_aco = shader->is_monolithic;
break;
default:
break;
}
}
/* Generate code for the hardware VS shader stage to go with a geometry shader */