From: Lionel Landwerlin Date: Thu, 25 Oct 2018 17:35:32 +0000 (+0100) Subject: anv: simplify internal address offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=352e2970919898df87dd81795c820fea2f20e0e0;p=mesa.git anv: simplify internal address offset Signed-off-by: Lionel Landwerlin Reviewed-by: Eric Engestrom Reviewed-by: Jason Ekstrand --- 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