summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2017-01-18 17:39:53 -0800
committerJason Ekstrand <[email protected]>2017-07-22 20:12:09 -0700
commit88200e87f6dac2750c7cc48f982bf1870903160f (patch)
tree59988027176a8ccf3a22bc1fce7c8f23da9b57e7 /src/intel/vulkan/anv_private.h
parent325ecffc62c311dba37ae6b86b7f2bf13ab8763e (diff)
anv/image: Append CCS/MCS with a fast-clear state buffer
v2: Update comments, function signatures, and add assertions. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r--src/intel/vulkan/anv_private.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 9a5d2d6fa49..3635bc8a1a5 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -2084,6 +2084,18 @@ anv_image_aux_layers(const struct anv_image * const image,
}
}
+static inline unsigned
+anv_fast_clear_state_entry_size(const struct anv_device *device)
+{
+ assert(device);
+ /* Entry contents:
+ * +----------------------+
+ * | clear value dword(s) |
+ * +----------------------+
+ */
+ return device->isl_dev.ss.clear_value_size;
+}
+
/* Returns true if a HiZ-enabled depth buffer can be sampled from. */
static inline bool
anv_can_sample_with_hiz(const struct gen_device_info * const devinfo,