mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
isl: allow sparse with STC_CCS on DG2
Thanks to Nanley Chery for pointing out this possibility. v2: Make it simpler (Nanley). Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37419>
This commit is contained in:
parent
7dd66d6bb1
commit
25d26a89e3
1 changed files with 9 additions and 2 deletions
|
|
@ -3880,8 +3880,15 @@ _isl_surf_info_supports_ccs(const struct isl_device *dev,
|
|||
/* Xe2 and newer don't require additional space to be allocated by the
|
||||
* driver for plain CCS, so we can trivially allow sparse.
|
||||
*/
|
||||
if (ISL_GFX_VER(dev) < 20 && (usage & ISL_SURF_USAGE_SPARSE_BIT))
|
||||
if (ISL_GFX_VER(dev) < 20 && (usage & ISL_SURF_USAGE_SPARSE_BIT)) {
|
||||
if (dev->info->has_flat_ccs) {
|
||||
/* Here we can allow STC_CCS for the same reason. */
|
||||
if (!isl_surf_usage_is_stencil(usage))
|
||||
return false;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (usage & ISL_SURF_USAGE_DISABLE_AUX_BIT)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue