[Mesa-dev] [PATCH 01/13] anv: simplify internal address offset
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Mon Nov 5 15:35:55 UTC 2018
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
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 d8a08d9d67f..8475008db4a 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.19.1
More information about the mesa-dev
mailing list