mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
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:
parent
288adae512
commit
d1dd36a74e
1 changed files with 7 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue