zink: cast pointers to uintptr_t
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 24 Jun 2021 11:30:20 +0000 (13:30 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 24 Jun 2021 17:51:47 +0000 (17:51 +0000)
commitf815026d36f32a83326b09113ed28ff3263bb7a0
treee86f483ee6ab4e336df604c4a4dbbb877b90ceee
parentbae4dca8e461640d8bed57dc77875afb4d5087ce
zink: cast pointers to uintptr_t

The way p_atomic_cmpxchg is implemented on Windows really wants us to
use integers instead of things like pointers. So let's use uintptr_t
here. It seems cleaner to use that than the value zero for the last
argument, because it shows the intent of the code more clearly.

Fixes: d80d9e1c935 ("zink: queue v3.0")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11424>
src/gallium/drivers/zink/zink_batch.h