diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-10-24 19:31:36 -0700 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-12-14 19:03:10 +0000 |
commit | 59be849daf78b04b62f4962aa6eb8c2615d51370 (patch) | |
tree | 2c5c597c9bb9ad3ced60b50a36f7b648ad7bd771 /src/intel/vulkan/anv_private.h | |
parent | 7704d2ffd6f9400ca87f7467361bada9b7352c22 (diff) | |
download | external_mesa3d-59be849daf78b04b62f4962aa6eb8c2615d51370.zip external_mesa3d-59be849daf78b04b62f4962aa6eb8c2615d51370.tar.gz external_mesa3d-59be849daf78b04b62f4962aa6eb8c2615d51370.tar.bz2 |
anv/image: Rename hiz_surface to aux_surface
(cherry picked from commit c3eb58664e5e537b21a75172916b42bd4b5504b3)
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 7a7564b..9c87105 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1526,10 +1526,11 @@ struct anv_image { struct { struct anv_surface depth_surface; - struct anv_surface hiz_surface; struct anv_surface stencil_surface; }; }; + + struct anv_surface aux_surface; }; static inline uint32_t @@ -1593,11 +1594,11 @@ anv_image_get_surface_for_aspect_mask(const struct anv_image *image, static inline bool anv_image_has_hiz(const struct anv_image *image) { - /* We must check the aspect because anv_image::hiz_surface belongs to - * a union. + /* We must check the aspect because anv_image::aux_surface may be used for + * any type of auxiliary surface, not just HiZ. */ return (image->aspects & VK_IMAGE_ASPECT_DEPTH_BIT) && - image->hiz_surface.isl.size > 0; + image->aux_surface.isl.size > 0; } struct anv_buffer_view { |