mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
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:
parent
4fa2fb3524
commit
352e297091
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue