diff options
author | Erik Faye-Lund <[email protected]> | 2019-03-29 10:48:33 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-04-02 07:48:45 +0000 |
commit | f53001324f0745c561f55cbabf5b32f63a4617e1 (patch) | |
tree | 1ad2ad62c06b6dd21600824f99ecc4e9b637a42c /src/gallium/drivers/virgl | |
parent | edc7deec42bc5f97d0eae9f910d79c6bc31e05ce (diff) |
virgl: do not allow compressed formats for buffers
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index 33ebd9324f5..e2b2712d942 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -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 || |