virgl: Enable ASTC formats also for 3D textures
The texture compression can also be used for 2D arrays and 3D textures. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11634>
This commit is contained in:
@@ -683,7 +683,6 @@ virgl_is_format_supported( struct pipe_screen *screen,
|
||||
|
||||
if ((format_desc->layout == UTIL_FORMAT_LAYOUT_RGTC ||
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_ETC ||
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC ||
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC) &&
|
||||
target == PIPE_TEXTURE_3D)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user