radeonsi: enable aco support for standalone tes
authorQiang Yu <qiang.yu@amd.com>
Tue, 23 May 2023 07:45:20 +0000 (15:45 +0800)
committerQiang Yu <yuq825@gmail.com>
Fri, 9 Jun 2023 02:53:33 +0000 (10:53 +0800)
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/23433>

src/gallium/drivers/radeonsi/si_shader.c

index c2f6e51..67245bf 100644 (file)
@@ -2323,6 +2323,9 @@ static void si_determine_use_aco(struct si_shader *shader)
    case MESA_SHADER_TESS_CTRL:
       shader->use_aco = shader->is_monolithic && !si_is_multi_part_shader(shader);
       break;
+   case MESA_SHADER_TESS_EVAL:
+      shader->use_aco = !si_is_multi_part_shader(shader);
+      break;
    case MESA_SHADER_FRAGMENT:
       shader->use_aco = shader->is_monolithic;
       break;