diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index dc760006894..ea8a3b0271e 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -2235,7 +2235,8 @@ zink_internal_create_screen(const struct pipe_screen_config *config) /* not found: use compatible heap */ if (screen->heap_map[i] == UINT8_MAX) { /* only cached mem has a failure case for now */ - assert(i == ZINK_HEAP_HOST_VISIBLE_CACHED || i == ZINK_HEAP_DEVICE_LOCAL_LAZY); + assert(i == ZINK_HEAP_HOST_VISIBLE_CACHED || i == ZINK_HEAP_DEVICE_LOCAL_LAZY || + i == ZINK_HEAP_DEVICE_LOCAL_VISIBLE); if (i == ZINK_HEAP_HOST_VISIBLE_CACHED) screen->heap_map[i] = screen->heap_map[ZINK_HEAP_HOST_VISIBLE_COHERENT]; else