diff options
author | Jason Ekstrand <[email protected]> | 2016-07-08 22:12:10 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-07-13 11:47:37 -0700 |
commit | 3ab3d97ac9d5851ce452b74822fff0c6c6694ad2 (patch) | |
tree | f7bbc93966451b8d5f20fc0e73e00d826e4a6540 /src/intel/isl/isl.h | |
parent | 219024b9a7588a5ebe7faf46120e8e5842e24b43 (diff) |
isl: Add support for color control surfaces
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r-- | src/intel/isl/isl.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index 13882eb2e78..9c036ddc76b 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -356,6 +356,15 @@ enum isl_format { ISL_FORMAT_MCS_4X, ISL_FORMAT_MCS_8X, ISL_FORMAT_MCS_16X, + ISL_FORMAT_GEN7_CCS_32BPP_X, + ISL_FORMAT_GEN7_CCS_64BPP_X, + ISL_FORMAT_GEN7_CCS_128BPP_X, + ISL_FORMAT_GEN7_CCS_32BPP_Y, + ISL_FORMAT_GEN7_CCS_64BPP_Y, + ISL_FORMAT_GEN7_CCS_128BPP_Y, + ISL_FORMAT_GEN9_CCS_32BPP, + ISL_FORMAT_GEN9_CCS_64BPP, + ISL_FORMAT_GEN9_CCS_128BPP, /* Hardware doesn't understand this out-of-band value */ ISL_FORMAT_UNSUPPORTED = UINT16_MAX, @@ -408,6 +417,7 @@ enum isl_txc { /* Used for auxiliary surface formats */ ISL_TXC_HIZ, ISL_TXC_MCS, + ISL_TXC_CCS, }; /** @@ -427,6 +437,7 @@ enum isl_tiling { ISL_TILING_Yf, /**< Standard 4K tiling. The 'f' means "four". */ ISL_TILING_Ys, /**< Standard 64K tiling. The 's' means "sixty-four". */ ISL_TILING_HIZ, /**< Tiling format for HiZ surfaces */ + ISL_TILING_CCS, /**< Tiling format for CCS surfaces */ }; /** @@ -441,6 +452,7 @@ typedef uint32_t isl_tiling_flags_t; #define ISL_TILING_Yf_BIT (1u << ISL_TILING_Yf) #define ISL_TILING_Ys_BIT (1u << ISL_TILING_Ys) #define ISL_TILING_HIZ_BIT (1u << ISL_TILING_HIZ) +#define ISL_TILING_CCS_BIT (1u << ISL_TILING_CCS) #define ISL_TILING_ANY_MASK (~0u) #define ISL_TILING_NON_LINEAR_MASK (~ISL_TILING_LINEAR_BIT) @@ -525,6 +537,7 @@ typedef uint64_t isl_surf_usage_flags_t; #define ISL_SURF_USAGE_STORAGE_BIT (1u << 12) #define ISL_SURF_USAGE_HIZ_BIT (1u << 13) #define ISL_SURF_USAGE_MCS_BIT (1u << 14) +#define ISL_SURF_USAGE_CCS_BIT (1u << 15) /** @} */ /** @@ -991,6 +1004,7 @@ isl_format_has_bc_compression(enum isl_format fmt) case ISL_TXC_HIZ: case ISL_TXC_MCS: + case ISL_TXC_CCS: unreachable("Should not be called on an aux surface"); } |