summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-07-08 19:37:27 -0700
committerJason Ekstrand <[email protected]>2016-07-13 11:47:37 -0700
commit219024b9a7588a5ebe7faf46120e8e5842e24b43 (patch)
tree1040549e41cc74a55b90dab1198590873130892b /src/intel/isl/isl.h
parent33dc8549fb9b227a57a84aac53f17bd099da38f4 (diff)
isl: Add support for multisample compression surfaces
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r--src/intel/isl/isl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index 8c01d6edb89..13882eb2e78 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -352,6 +352,10 @@ enum isl_format {
/* Formats for color compression surfaces */
ISL_FORMAT_HIZ,
+ ISL_FORMAT_MCS_2X,
+ ISL_FORMAT_MCS_4X,
+ ISL_FORMAT_MCS_8X,
+ ISL_FORMAT_MCS_16X,
/* Hardware doesn't understand this out-of-band value */
ISL_FORMAT_UNSUPPORTED = UINT16_MAX,
@@ -403,6 +407,7 @@ enum isl_txc {
/* Used for auxiliary surface formats */
ISL_TXC_HIZ,
+ ISL_TXC_MCS,
};
/**
@@ -519,6 +524,7 @@ typedef uint64_t isl_surf_usage_flags_t;
#define ISL_SURF_USAGE_DISPLAY_FLIP_Y_BIT (1u << 11)
#define ISL_SURF_USAGE_STORAGE_BIT (1u << 12)
#define ISL_SURF_USAGE_HIZ_BIT (1u << 13)
+#define ISL_SURF_USAGE_MCS_BIT (1u << 14)
/** @} */
/**
@@ -984,6 +990,7 @@ isl_format_has_bc_compression(enum isl_format fmt)
return false;
case ISL_TXC_HIZ:
+ case ISL_TXC_MCS:
unreachable("Should not be called on an aux surface");
}