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:
parent
b5c33174a1
commit
e11df07e54
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue