lavapipe: resolve border-color when creating sampler
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 19 Apr 2021 11:25:36 +0000 (13:25 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 19 Apr 2021 14:01:41 +0000 (14:01 +0000)
commita20e0b8a97780392c0bbfd025860ed9027eafc08
treeb310750d55c0b62dc1a0a4376234b5e7d30ba8fa
parent33e117ed7f3c48d3dbeda9a28603a121eac7a860
lavapipe: resolve border-color when creating sampler

This is going to make it easier to implement the custom border-color
extension.

While we're moving the code, tweak the memset code a bit, so we don't do
any float-ism in the int-case. It doesn't change anything functionally,
just makes it slightly clearer what's going on here.

Reviewed-by: Joshua Ashton <joshua@froggi.es>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10320>
src/gallium/frontends/lavapipe/lvp_device.c
src/gallium/frontends/lavapipe/lvp_execute.c
src/gallium/frontends/lavapipe/lvp_private.h