From 393ca64716a4de665359953b1a718cd3430e4c4c Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 25 Oct 2024 18:07:56 +0300 Subject: [PATCH] anv: avoid companion usage on RCS Signed-off-by: Lionel Landwerlin Fixes: e98759c7f4 ("anv: Use RCS engine for copying stencil resource for gfx125") Reviewed-by: Jordan Justen Part-of: --- src/intel/vulkan/anv_blorp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 1f7f5b6d6aa..8282f32a25c 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -535,9 +535,9 @@ anv_blorp_execute_on_companion(struct anv_cmd_buffer *cmd_buffer, * for stencil resources. Fallback to RCS engine for performing a copy to * workaround the issue. */ - if ((devinfo->verx10 == 125) && + if (anv_cmd_buffer_is_blitter_queue(cmd_buffer) && + (devinfo->verx10 == 125) && (dst_image->vk.aspects & VK_IMAGE_ASPECT_STENCIL_BIT)) { - const uint32_t plane = anv_image_aspect_to_plane(dst_image, VK_IMAGE_ASPECT_STENCIL_BIT);