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:
Boris Brezillon 2022-04-22 11:01:00 -07:00 committed by Marge Bot
parent 3328f6be06
commit 1999e927b0
1 changed files with 1 additions and 1 deletions

View File

@ -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);