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:
3328f6b
)
dzn: Fix the STATIC_ASSERT() in dzn_meta_blits_get_context()
author
Boris Brezillon
<boris.brezillon@collabora.com>
Fri, 22 Apr 2022 18:01:00 +0000
(11:01 -0700)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 22 Apr 2022 20:45:04 +0000
(20:45 +0000)
We care about the object key size, not the size of a pointer.
Fixes:
a012b219640
("microsoft: Initial vulkan-on-12 driver")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16109>
src/microsoft/vulkan/dzn_meta.c
patch
|
blob
|
history
diff --git
a/src/microsoft/vulkan/dzn_meta.c
b/src/microsoft/vulkan/dzn_meta.c
index
d0e88db
..
6ea2ae6
100644
(file)
--- a/
src/microsoft/vulkan/dzn_meta.c
+++ b/
src/microsoft/vulkan/dzn_meta.c
@@
-644,7
+644,7
@@
dzn_meta_blits_get_context(struct dzn_device *device,
{
struct dzn_meta_blit *out = NULL;
- STATIC_ASSERT(sizeof(key) == sizeof(uint64_t));
+ STATIC_ASSERT(sizeof(
*
key) == sizeof(uint64_t));
mtx_lock(&device->blits.contexts_lock);