anv: Stop using RCS companion for MSAA copy/clear on Xe3+
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

On Xe3+, we have typed MSAA load/store message support. We can use them
during MSAA copies. We don't have to fallback on RCS companion queue
anymore.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33905>
This commit is contained in:
Sagar Ghuge 2025-03-04 22:43:59 -08:00 committed by Marge Bot
parent de0c547448
commit 61287b00f3

View file

@ -587,14 +587,17 @@ anv_blorp_execute_on_companion(struct anv_cmd_buffer *cmd_buffer,
if (anv_cmd_buffer_is_render_queue(cmd_buffer))
return false;
/* MSAA images have to be dealt with on the companion RCS command buffer
* for both CCS && BCS engines.
*
* TODO: relax this for Xe3+ on CCS when we have Blorp MSAA copies.
*/
if ((src_image && is_image_multisampled(src_image)) ||
(dst_image && is_image_multisampled(dst_image)))
return true;
(dst_image && is_image_multisampled(dst_image))) {
/* MSAA images have to be dealt with on the companion RCS command buffer
* for both CCS && BCS engines pre-Xe3.
*/
if (devinfo->ver < 30)
return true;
/* Even on Xe3, no support for MSAA on BCS. */
if (anv_cmd_buffer_is_compute_queue(cmd_buffer))
return true;
}
if (anv_cmd_buffer_is_blitter_queue(cmd_buffer)) {
/* Emulation of formats is done through a compute shader, so we need the