mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
radeonsi: enable aco for mono standalone vs
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/23096>
This commit is contained in:
parent
8db2d6181b
commit
f6c5133074
2 changed files with 4 additions and 0 deletions
|
|
@ -2326,6 +2326,9 @@ static void si_determine_use_aco(struct si_shader *shader)
|
|||
return;
|
||||
|
||||
switch (sel->stage) {
|
||||
case MESA_SHADER_VERTEX:
|
||||
shader->use_aco = shader->is_monolithic && !si_is_multi_part_shader(shader);
|
||||
break;
|
||||
case MESA_SHADER_FRAGMENT:
|
||||
shader->use_aco = shader->is_monolithic;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ si_fill_aco_options(struct si_shader *shader, struct aco_compiler_options *optio
|
|||
si_can_dump_shader(sel->screen, sel->stage, SI_DUMP_ASM);
|
||||
options->dump_preoptir = si_can_dump_shader(sel->screen, sel->stage, SI_DUMP_INIT_ACO_IR);
|
||||
options->record_ir = sel->screen->record_llvm_ir;
|
||||
options->is_opengl = true;
|
||||
|
||||
options->load_grid_size_from_user_sgpr = true;
|
||||
options->family = sel->screen->info.family;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue