mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
isl: allow compression for storage images on gen12+
This is done to be able to use ISL_AUX_USAGE_CCS_E with images. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4080>
This commit is contained in:
parent
cd132a8eed
commit
d836f3fadf
1 changed files with 4 additions and 1 deletions
|
|
@ -609,8 +609,11 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
|
|||
/* The docs don't appear to say anything whatsoever about compression
|
||||
* and the data port. Testing seems to indicate that the data port
|
||||
* completely ignores the AuxiliarySurfaceMode field.
|
||||
*
|
||||
* On gen12 HDC supports compression.
|
||||
*/
|
||||
assert(!(info->view->usage & ISL_SURF_USAGE_STORAGE_BIT));
|
||||
if (GEN_GEN < 12)
|
||||
assert(!(info->view->usage & ISL_SURF_USAGE_STORAGE_BIT));
|
||||
|
||||
if (isl_surf_usage_is_depth(info->surf->usage))
|
||||
assert(isl_aux_usage_has_hiz(info->aux_usage));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue