diff options
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 85843b204b2..355adbac91d 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -2266,6 +2266,13 @@ struct anv_image { }; /** + * A surface which shadows the main surface and may have different tiling. + * This is used for sampling using a tiling that isn't supported for other + * operations. + */ + struct anv_surface shadow_surface; + + /** * For color images, this is the aux usage for this image when not used as a * color attachment. * @@ -2352,6 +2359,13 @@ anv_image_fast_clear(struct anv_cmd_buffer *cmd_buffer, const uint32_t base_level, const uint32_t level_count, const uint32_t base_layer, uint32_t layer_count); +void +anv_image_copy_to_shadow(struct anv_cmd_buffer *cmd_buffer, + const struct anv_image *image, + VkImageAspectFlagBits aspect, + uint32_t base_level, uint32_t level_count, + uint32_t base_layer, uint32_t layer_count); + enum isl_aux_usage anv_layout_to_aux_usage(const struct gen_device_info * const devinfo, const struct anv_image *image, |