Commit 352e2970 authored by Lionel Landwerlin's avatar Lionel Landwerlin

anv: simplify internal address offset

Signed-off-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
parent 4fa2fb35
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment