mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
anv: handle ATTACHMENT_OPTIMAL layout
Closes: #8216 Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21066>
This commit is contained in:
parent
b1a33789b8
commit
9b3b7e5091
1 changed files with 4 additions and 2 deletions
|
|
@ -2128,7 +2128,8 @@ anv_layout_to_aux_state(const struct intel_device_info * const devinfo,
|
|||
|
||||
case ISL_AUX_USAGE_CCS_D:
|
||||
/* We only support clear in exactly one state */
|
||||
if (layout == VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL) {
|
||||
if (layout == VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL ||
|
||||
layout == VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL) {
|
||||
assert(aux_supported);
|
||||
assert(clear_supported);
|
||||
return ISL_AUX_STATE_PARTIAL_CLEAR;
|
||||
|
|
@ -2272,7 +2273,8 @@ anv_layout_to_fast_clear_type(const struct intel_device_info * const devinfo,
|
|||
case ISL_AUX_STATE_COMPRESSED_CLEAR:
|
||||
if (aspect == VK_IMAGE_ASPECT_DEPTH_BIT) {
|
||||
return ANV_FAST_CLEAR_DEFAULT_VALUE;
|
||||
} else if (layout == VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL) {
|
||||
} else if (layout == VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL ||
|
||||
layout == VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL) {
|
||||
/* The image might not support non zero fast clears when mutable. */
|
||||
if (!image->planes[plane].can_non_zero_fast_clear)
|
||||
return ANV_FAST_CLEAR_DEFAULT_VALUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue