virgl: Use ETC2 formats directly when possible.
authorLepton Wu <lepton@chromium.org>
Sat, 11 Apr 2020 22:10:45 +0000 (15:10 -0700)
committerLepton Wu <lepton@chromium.org>
Thu, 16 Apr 2020 09:21:21 +0000 (09:21 +0000)
commit1c4f68b089b26918fff55196122309ac43e78e1b
treefc195a74ff3c82129c90a7497a3e9f7e665e8b0c
parentdcb1e8fef8ae60877a696a5bca337eba5475085d
virgl: Use ETC2 formats directly when possible.

Don't emulate them with uncompressed formats if the host
support them since uncompressed formats like GL_R16 could
be not available on GLES hosts.

Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
src/gallium/drivers/virgl/virgl_encode.c
src/gallium/drivers/virgl/virgl_hw.h
src/gallium/drivers/virgl/virgl_screen.c