summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-08-06 09:11:10 -0700
committerJason Ekstrand <[email protected]>2016-08-08 11:13:44 -0700
commit21d5c1be6a334b924ac3dcedbdc35285e0c1ba16 (patch)
tree99e195f7a6e6ccba89d8ac92f028141b0e42773f /src/intel/isl/isl.h
parentce980541d5dc9b114c3aa69b3560fcb6023ccf32 (diff)
isl: Add a helper for getting a depth format from an isl_format
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r--src/intel/isl/isl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index 19673f899d9..4caf0e8324c 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -1016,6 +1016,8 @@ isl_format_has_int_channel(enum isl_format fmt)
unsigned isl_format_get_num_channels(enum isl_format fmt);
+uint32_t isl_format_get_depth_format(enum isl_format fmt, bool has_stencil);
+
static inline bool
isl_format_is_compressed(enum isl_format fmt)
{