gallivm: fix rgtc2 format
authorRoland Scheidegger <sroland@vmware.com>
Thu, 2 Apr 2020 00:51:03 +0000 (02:51 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Apr 2020 15:53:23 +0000 (15:53 +0000)
commitebb5b88a02637908b9f4bfd0644964d6347b23af
treeca3b012f7aa12119a7132c65636d643822d81068
parent5cc27d59a11ed11081b3f5c9acc3280ec412ebed
gallivm: fix rgtc2 format

In some cases, there can be garbage in the upper bits after the channel
decode - for dxt5 this didn't matter (as the upper bits are shifted out
anyway) but for rgtc2 formats it does.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4416>
src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c