anv: no need to handle transitions for CPB surfaces

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20741>
This commit is contained in:
Rohan Garg 2025-02-17 12:54:39 +01:00 committed by Marge Bot
parent 80f9b61f02
commit dadd84f5a8

View file

@ -1138,6 +1138,10 @@ transition_color_buffer(struct anv_cmd_buffer *cmd_buffer,
const uint32_t plane = anv_image_aspect_to_plane(image, aspect);
/* Early return for CPB surfaces, nothing to do */
if (isl_surf_usage_is_cpb(image->planes[plane].primary_surface.isl.usage))
return;
if (base_layer >= anv_image_aux_layers(image, aspect, base_level))
return;