zink: do not copy colors through floats
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 21 May 2021 12:40:27 +0000 (14:40 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 9 Feb 2022 05:11:40 +0000 (05:11 +0000)
commit883017b67ec888f453814e58705cc6f4626da304
treee0cb432c134176e19a50831ece6e0a92baf73db5
parent745fc95659bd19908f5bd85f73c92e4a92e28f85
zink: do not copy colors through floats

Copying per compoents might flush NaN values, leading to changes in the
values, so it'd be safer to copy as unsigned integers here. But in one
of the cases here we can do even better, and just copy the whole damn
union instead.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14932>
src/gallium/drivers/zink/zink_clear.c