mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 13:40:24 +01:00
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>
This commit is contained in:
parent
f53001324f
commit
4f153fcd5c
1 changed files with 6 additions and 0 deletions
|
|
@ -625,6 +625,12 @@ virgl_is_format_supported( struct pipe_screen *screen,
|
|||
target != PIPE_BUFFER)
|
||||
return FALSE;
|
||||
|
||||
if ((format_desc->layout == UTIL_FORMAT_LAYOUT_RGTC ||
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_ETC ||
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC) &&
|
||||
target == PIPE_TEXTURE_3D)
|
||||
return FALSE;
|
||||
|
||||
if (bind & PIPE_BIND_RENDER_TARGET) {
|
||||
/* For ARB_framebuffer_no_attachments. */
|
||||
if (format == PIPE_FORMAT_NONE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue