nouveau/winsys: Stop asserting that imported BOs are aligned

This may not be true if it comes from the nouveau GL driver.

Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33990>
This commit is contained in:
Faith Ekstrand 2025-03-06 13:31:29 -06:00 committed by Marge Bot
parent 4ad5b8f5bb
commit a18c176093

View file

@ -206,12 +206,6 @@ nouveau_ws_bo_from_dma_buf_locked(struct nouveau_ws_device *dev, int fd)
bo->flags = flags;
bo->refcnt = 1;
uint64_t align = (1ULL << 12);
if (info.domain & NOUVEAU_GEM_DOMAIN_VRAM)
align = (1ULL << 16);
assert(bo->size == align64(bo->size, align));
_mesa_hash_table_insert(dev->bos, (void *)(uintptr_t)handle, bo);
return bo;