anv: Don't partial resolve LOD1+ for non-FCV CCS

We don't allow fast-clears in this case.

Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37660>
This commit is contained in:
Nanley Chery 2025-11-18 06:43:04 -05:00 committed by Marge Bot
parent 21d187b7f5
commit e42b2a5d70

View file

@ -1345,6 +1345,14 @@ transition_color_buffer(struct anv_cmd_buffer *cmd_buffer,
for (uint32_t l = 0; l < level_count; l++) {
uint32_t level = base_level + l;
/* We only support fast-clear on the first level. So, partial
* resolves should not be used on other subresources unless the image
* is using FCV_CCS_E.
*/
if (level > 0 && resolve_op == ISL_AUX_OP_PARTIAL_RESOLVE &&
image->planes[plane].aux_usage != ISL_AUX_USAGE_FCV_CCS_E)
break;
uint32_t aux_layers = anv_image_aux_layers(image, aspect, level);
if (base_layer >= aux_layers)
break; /* We will only get fewer layers as level increases */