mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-07 23:10:32 +01:00
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:
parent
21d187b7f5
commit
e42b2a5d70
1 changed files with 8 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue