nvk: NOUVEAU_WS_BO_LOCAL is a trap.

This flag isn't a flag, don't be & at it.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24625>
This commit is contained in:
Dave Airlie 2023-08-11 13:50:35 +10:00 committed by Marge Bot
parent 9f767db126
commit e0da62c0e9

View file

@ -175,7 +175,7 @@ nvk_allocate_memory(struct nvk_device *dev,
nvk_memory_type_flags(type, handle_types);
uint32_t alignment = (1ULL << 12);
if (flags & NOUVEAU_WS_BO_LOCAL)
if (!(flags & NOUVEAU_WS_BO_GART))
alignment = (1ULL << 16);
const uint64_t aligned_size =