mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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:
parent
80f9b61f02
commit
dadd84f5a8
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue