dzn: Fix the STATIC_ASSERT() in dzn_meta_blits_get_context()
We care about the object key size, not the size of a pointer.
Fixes: a012b21964
("microsoft: Initial vulkan-on-12 driver")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16109>
This commit is contained in:
parent
3328f6be06
commit
1999e927b0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue