mesa: Avoid temp images in _mesa_texstore_rgb_dxt1 for GL_RGBA source
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 2 May 2022 19:59:12 +0000 (12:59 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 27 May 2022 01:47:33 +0000 (01:47 +0000)
commit6910891c7f71d97379c43914adc6443ae9e99aef
tree870e4126b0dcf5780aea11d9d7b799d7ba0ae308
parent5602f424c3561e63fc249d1e9eaf5e5b4ae225f0
mesa: Avoid temp images in _mesa_texstore_rgb_dxt1 for GL_RGBA source

The compressor can handle 3 or 4-component sources, so allow a GL_RGBA
source and just pass that along with the correct number of components.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16631>
src/mesa/main/texcompress_s3tc.c