anv: fix debugoptimized build compile

this function is only needed for asserts

Fixes: 2e4c153c6b ("anv/image: Refactor check_memory_bindings()")

fixes #4599

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10141>
This commit is contained in:
Mike Blumenkrantz 2021-04-09 11:35:59 -04:00 committed by Marge Bot
parent b5c33174a1
commit e11df07e54
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ add_primary_surface(struct anv_device *device,
ANV_IMAGE_MEMORY_BINDING_PLANE_0 + plane, offset); ANV_IMAGE_MEMORY_BINDING_PLANE_0 + plane, offset);
} }
#ifdef DEBUG #ifndef NDEBUG
static bool MUST_CHECK static bool MUST_CHECK
memory_range_is_aligned(struct anv_image_memory_range memory_range) memory_range_is_aligned(struct anv_image_memory_range memory_range)
{ {