virgl: stricter usage of compressed 3d textures
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 28 Mar 2019 18:03:47 +0000 (19:03 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 2 Apr 2019 07:48:46 +0000 (07:48 +0000)
commit4f153fcd5cee9d3ffeb45488a0ea83e0a2ff5658
tree57c873ce1379e1c6de0cda6b59f7cecbf92ab9b3
parentf53001324f0745c561f55cbabf5b32f63a4617e1
virgl: stricter usage of compressed 3d textures

Using RGTC, ETC1, ETC2 or S3TC for 3D-textures isn't alowed by any of
OpenGL 4.6, OpenGL ES 3.2, ARB_texture_compression_rgtc,
EXT_texture_compression_rgtc, OES_compressed_ETC1_RGB8_texture,
S3_s3tc or EXT_texture_compression_s3tc specifications.

So let's not allow any of those compressed 3d-textures at all. It's not
going to work once it hits the OpenGL driver in virglrenderer.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/gallium/drivers/virgl/virgl_screen.c