Revert "anv/image: Define anv_image_get_aux_addr (v3)"
This reverts commit87dc3106b0
. Fixes:87dc3106b0
"anv/image: Define anv_image_get_aux_addr (v3)" Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3826 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7670>
This commit is contained in:
@@ -3894,19 +3894,6 @@ anv_image_aux_layers(const struct anv_image * const image,
|
||||
return MAX2(image->array_size, image->extent.depth >> miplevel);
|
||||
}
|
||||
|
||||
static inline struct anv_address
|
||||
anv_image_get_aux_addr(UNUSED const struct anv_device *device,
|
||||
const struct anv_image *image,
|
||||
uint32_t plane)
|
||||
{
|
||||
const struct anv_image_plane *p = &image->planes[plane];
|
||||
|
||||
if (p->aux_surface.isl.size_B == 0)
|
||||
return ANV_NULL_ADDRESS;
|
||||
|
||||
return anv_address_add(p->address, p->aux_surface.offset);
|
||||
}
|
||||
|
||||
static inline struct anv_address
|
||||
anv_image_get_clear_color_addr(UNUSED const struct anv_device *device,
|
||||
const struct anv_image *image,
|
||||
|
Reference in New Issue
Block a user