From 352e2970919898df87dd81795c820fea2f20e0e0 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 25 Oct 2018 18:35:32 +0100 Subject: [PATCH] anv: simplify internal address offset Signed-off-by: Lionel Landwerlin Reviewed-by: Eric Engestrom Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_private.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index c791c568234..0ce81cf086a 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -2864,8 +2864,7 @@ anv_image_get_fast_clear_type_addr(const struct anv_device *device, const unsigned clear_color_state_size = device->info.gen >= 10 ? device->isl_dev.ss.clear_color_state_size : device->isl_dev.ss.clear_value_size; - addr.offset += clear_color_state_size; - return addr; + return anv_address_add(addr, clear_color_state_size); } static inline struct anv_address -- 2.30.2