mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
virgl: do not allow compressed formats for buffers
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
edc7deec42
commit
f53001324f
1 changed files with 3 additions and 0 deletions
|
|
@ -615,6 +615,9 @@ virgl_is_format_supported( struct pipe_screen *screen,
|
|||
return virgl_is_vertex_format_supported(screen, format);
|
||||
}
|
||||
|
||||
if (util_format_is_compressed(format) && target == PIPE_BUFFER)
|
||||
return FALSE;
|
||||
|
||||
/* Allow 3-comp 32 bit textures only for TBOs (needed for ARB_tbo_rgb32) */
|
||||
if ((format == PIPE_FORMAT_R32G32B32_FLOAT ||
|
||||
format == PIPE_FORMAT_R32G32B32_SINT ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue