aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2020-01-06 11:23:43 -0600
committerMarge Bot <[email protected]>2020-01-24 17:42:36 +0000
commit9a1232a745cba8f6782ae3833aa2cbdba710fd80 (patch)
treecce6b288a20f25252d83033c45175efa7f1e3821 /src/intel/vulkan/anv_private.h
parent769d6ba2009a366e0e49f399497a59876dd89286 (diff)
anv: Add a layout_to_aux_state helper
This new helper maps VkImageLayout enums to isl_aux_state enums which are the hardware's concept of image layouts. We can then use the aux state to get the fast clear type and the aux usage. This should yield no functional change in driver behavior. Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Nanley Chery <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2605>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r--src/intel/vulkan/anv_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 7c22a354ffd..8350e9fe8f7 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -3690,6 +3690,12 @@ anv_image_copy_to_shadow(struct anv_cmd_buffer *cmd_buffer,
uint32_t base_level, uint32_t level_count,
uint32_t base_layer, uint32_t layer_count);
+enum isl_aux_state
+anv_layout_to_aux_state(const struct gen_device_info * const devinfo,
+ const struct anv_image *image,
+ const VkImageAspectFlagBits aspect,
+ const VkImageLayout layout);
+
enum isl_aux_usage
anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
const struct anv_image *image,