projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f767db
)
nvk: NOUVEAU_WS_BO_LOCAL is a trap.
author
Dave Airlie
<airlied@redhat.com>
Fri, 11 Aug 2023 03:50:35 +0000
(13:50 +1000)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 11 Aug 2023 06:20:01 +0000
(06:20 +0000)
This flag isn't a flag, don't be & at it.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24625>
src/nouveau/vulkan/nvk_device_memory.c
patch
|
blob
|
history
diff --git
a/src/nouveau/vulkan/nvk_device_memory.c
b/src/nouveau/vulkan/nvk_device_memory.c
index
2f5af26
..
9ba1061
100644
(file)
--- a/
src/nouveau/vulkan/nvk_device_memory.c
+++ b/
src/nouveau/vulkan/nvk_device_memory.c
@@
-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 =