anv: avoid companion usage on RCS

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: e98759c7f4 ("anv: Use RCS engine for copying stencil resource for gfx125")
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31847>
This commit is contained in:
Lionel Landwerlin 2024-10-25 18:07:56 +03:00 committed by Marge Bot
parent f83c2fcc98
commit 393ca64716

View file

@ -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);