summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2018-10-25 18:35:32 +0100
committerLionel Landwerlin <[email protected]>2018-11-13 18:56:10 +0000
commit352e2970919898df87dd81795c820fea2f20e0e0 (patch)
treef1f9374b54f1f14be87f7537d91d7785a9f30f98 /src/intel
parent4fa2fb35245448f8b5d81fb5b37afec4f343f18a (diff)
anv: simplify internal address offset
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_private.h3
1 files changed, 1 insertions, 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