mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 05:38:16 +02:00
anv: Support arbitrary fast-clear value on all layouts (xe2)
Xe2+ platforms don't use fast-type buffer for its new design. We don't have to track different fast-clear types, so we just return the highest level of support. Fixes: Vulkan CTS dEQP-VK.api.copy_and_blit.core.resolve_image.whole_array_image _one_region.8_bit_not_all_remaining_layers src/intel/vulkan/anv_private.h:5439: anv_image_get_fast_clear_type_addr: Assertion `device->info->ver < 20' failed. Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29966>
This commit is contained in:
parent
4034539c00
commit
bd05ef9d91
1 changed files with 6 additions and 0 deletions
|
|
@ -3109,6 +3109,12 @@ anv_layout_to_fast_clear_type(const struct intel_device_info * const devinfo,
|
|||
if (INTEL_DEBUG(DEBUG_NO_FAST_CLEAR))
|
||||
return ANV_FAST_CLEAR_NONE;
|
||||
|
||||
/* Xe2+ platforms don't have fast clear type and can always support
|
||||
* arbitrary fast-clear values.
|
||||
*/
|
||||
if (devinfo->ver >= 20)
|
||||
return ANV_FAST_CLEAR_ANY;
|
||||
|
||||
const uint32_t plane = anv_image_aspect_to_plane(image, aspect);
|
||||
|
||||
/* If there is no auxiliary surface allocated, there are no fast-clears */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue