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:
@@ -2320,7 +2320,13 @@ static void si_determine_use_aco(struct si_shader *shader)
|
|||||||
if (!(sel->screen->debug_flags & DBG(USE_ACO)))
|
if (!(sel->screen->debug_flags & DBG(USE_ACO)))
|
||||||
return;
|
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 */
|
/* Generate code for the hardware VS shader stage to go with a geometry shader */
|
||||||
|
|||||||
Reference in New Issue
Block a user