mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-20 05:50:27 +01:00
anv: limit non zero fast clear check to GFX12_CCS_E
TGL C0 and above can fast clear to non zero values 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/22076>
This commit is contained in:
parent
3debf2af0c
commit
8a33a1390a
1 changed files with 3 additions and 4 deletions
|
|
@ -344,15 +344,14 @@ can_fast_clear_with_non_zero_color(const struct intel_device_info *devinfo,
|
|||
if (!isl_aux_usage_has_fast_clears(image->planes[plane].aux_usage))
|
||||
return false;
|
||||
|
||||
/* On TGL, if a block of fragment shader outputs match the surface's clear
|
||||
* color, the HW may convert them to fast-clears (see HSD 14010672564).
|
||||
/* On TGL (< C0), if a block of fragment shader outputs match the surface's
|
||||
* clear color, the HW may convert them to fast-clears (see HSD 14010672564).
|
||||
* This can lead to rendering corruptions if not handled properly. We
|
||||
* restrict the clear color to zero to avoid issues that can occur with:
|
||||
* - Texture view rendering (including blorp_copy calls)
|
||||
* - Images with multiple levels or array layers
|
||||
*/
|
||||
if (devinfo->ver >= 12 &&
|
||||
image->planes[plane].aux_usage == ISL_AUX_USAGE_CCS_E)
|
||||
if (image->planes[plane].aux_usage == ISL_AUX_USAGE_GFX12_CCS_E)
|
||||
return false;
|
||||
|
||||
/* Non mutable image, we can fast clear with any color supported by HW.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue