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

anv: simplify internal address offset

Signed-off-by: Lionel Landwerlin's avatarLionel Landwerlin <>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <>
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <>
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-> :
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