zink: correctly handle 64 valid timestamp bits
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 10 Feb 2021 17:50:32 +0000 (18:50 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Feb 2021 11:57:49 +0000 (11:57 +0000)
commitb65093c0cfbc614e88bb333fd99e4f578ddccdb7
tree538e2ba33c005b0ef6ab2b08f9405aea5200df49
parentd906c007d665725eb501f304aba31b8a25b1a18f
zink: correctly handle 64 valid timestamp bits

We can't shift up 1ull by more than 63 without triggering undefined
behavior here. But in that case, doing nothing is perfectly fine.

While we're at it, remove some needless parens.

This fixes the spec@ext_timer_query@time-elapsed piglit test on top of
Lavapipe.

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8977>
src/gallium/drivers/zink/zink_query.c