From eead86ad8e353234f47e00fb25b393dddb15106c Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 16 Jan 2024 13:58:54 +0200 Subject: [PATCH] anv: rename aux_tt image field We'll add more to the sub-struct Signed-off-by: Lionel Landwerlin Reviewed-by: Jianxun Zhang Part-of: --- src/intel/vulkan/anv_image.c | 4 ++-- src/intel/vulkan/anv_private.h | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index a931f17c1b8..ee3b0f83eb6 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -1767,7 +1767,7 @@ anv_image_finish(struct anv_image *image) * mapping. */ for (int p = 0; p < image->n_planes; ++p) { - if (!image->planes[p].aux_ccs_mapped) + if (!image->planes[p].aux_tt.mapped) continue; const struct anv_address main_addr = @@ -2271,7 +2271,7 @@ anv_image_map_aux_tt(struct anv_device *device, anv_address_physical(main_addr), anv_address_physical(aux_addr), surf->size_B, format_bits)) { - image->planes[plane].aux_ccs_mapped = true; + image->planes[plane].aux_tt.mapped = true; return true; } } diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index d9d17706a73..5648350e5e6 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -4832,7 +4832,10 @@ struct anv_image { */ bool can_non_zero_fast_clear; - bool aux_ccs_mapped; + struct { + /** Whether the image has CCS data mapped through AUX-TT. */ + bool mapped; + } aux_tt; } planes[3]; struct anv_image_memory_range vid_dmv_top_surface;