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:
f594635
)
anv/allocator: Use list->u64 in free_list_push
author
Jason Ekstrand
<jason@jlekstrand.net>
Tue, 13 Jul 2021 21:23:22 +0000
(16:23 -0500)
committer
Marge Bot
<eric+marge@anholt.net>
Wed, 14 Jul 2021 05:50:46 +0000
(
05:50
+0000)
Since we always modify this structure with atomics on the u64, it seems
better to use the u64 here too. I have no idea if this fixes a bug.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11857>
src/intel/vulkan/anv_allocator.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_allocator.c
b/src/intel/vulkan/anv_allocator.c
index
c42f688
..
afbfc73
100644
(file)
--- a/
src/intel/vulkan/anv_allocator.c
+++ b/
src/intel/vulkan/anv_allocator.c
@@
-331,7
+331,7
@@
anv_free_list_push(union anv_free_list *list,
for (uint32_t i = 1; i < count; i++, last++)
table->map[last].next = last + 1;
- old
= *list
;
+ old
.u64 = list->u64
;
do {
current = old;
table->map[last].next = current.offset;