anv: simplify internal address offset

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Lionel Landwerlin 2018-10-25 18:35:32 +01:00
parent 4fa2fb3524
commit 352e297091
1 changed files with 1 additions and 2 deletions

View File

@ -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