mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
intel/isl: Add new aux modes available on gen12
v2. Add media compression. (Nanley) Co-authored-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
77f506382f
commit
a1e0b21061
1 changed files with 33 additions and 1 deletions
|
|
@ -602,6 +602,21 @@ enum isl_aux_usage {
|
|||
* @invariant isl_surf::samples == 1
|
||||
*/
|
||||
ISL_AUX_USAGE_CCS_E,
|
||||
|
||||
/** The auxiliary surface provides full lossless media color compression
|
||||
*
|
||||
* @invariant isl_surf::samples == 1
|
||||
*/
|
||||
ISL_AUX_USAGE_MC,
|
||||
|
||||
/** The auxiliary surface is a HiZ surface and CCS is also enabled */
|
||||
ISL_AUX_USAGE_HIZ_CCS,
|
||||
|
||||
/** The auxiliary surface is an MCS and CCS is also enabled
|
||||
*
|
||||
* @invariant isl_surf::samples > 1
|
||||
*/
|
||||
ISL_AUX_USAGE_MCS_CCS,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1639,11 +1654,28 @@ isl_tiling_to_i915_tiling(enum isl_tiling tiling);
|
|||
enum isl_tiling
|
||||
isl_tiling_from_i915_tiling(uint32_t tiling);
|
||||
|
||||
static inline bool
|
||||
isl_aux_usage_has_hiz(enum isl_aux_usage usage)
|
||||
{
|
||||
return usage == ISL_AUX_USAGE_HIZ ||
|
||||
usage == ISL_AUX_USAGE_HIZ_CCS;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
isl_aux_usage_has_mcs(enum isl_aux_usage usage)
|
||||
{
|
||||
return usage == ISL_AUX_USAGE_MCS ||
|
||||
usage == ISL_AUX_USAGE_MCS_CCS;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
isl_aux_usage_has_ccs(enum isl_aux_usage usage)
|
||||
{
|
||||
return usage == ISL_AUX_USAGE_CCS_D ||
|
||||
usage == ISL_AUX_USAGE_CCS_E;
|
||||
usage == ISL_AUX_USAGE_CCS_E ||
|
||||
usage == ISL_AUX_USAGE_MC ||
|
||||
usage == ISL_AUX_USAGE_HIZ_CCS ||
|
||||
usage == ISL_AUX_USAGE_MCS_CCS;
|
||||
}
|
||||
|
||||
const struct isl_drm_modifier_info * ATTRIBUTE_CONST
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue