Mesa (master): virgl: add BPTC support.

Dave Airlie airlied at kemper.freedesktop.org
Wed Aug 2 03:55:09 UTC 2017


Module: Mesa
Branch: master
Commit: 246690b683cbd1b3e596b8cc3ef1c86b65fb671e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=246690b683cbd1b3e596b8cc3ef1c86b65fb671e

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Aug  2 13:29:22 2017 +1000

virgl: add BPTC support.

This just adds the guest checks for BPTC, the host renderer
also needs code to support these.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/virgl/virgl_screen.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c
index e155b4a7bf..bad57e07b9 100644
--- a/src/gallium/drivers/virgl/virgl_screen.c
+++ b/src/gallium/drivers/virgl/virgl_screen.c
@@ -488,6 +488,9 @@ virgl_is_format_supported( struct pipe_screen *screen,
    if (format_desc->layout == UTIL_FORMAT_LAYOUT_RGTC) {
       goto out_lookup;
    }
+   if (format_desc->layout == UTIL_FORMAT_LAYOUT_BPTC) {
+      goto out_lookup;
+   }
 
    if (format == PIPE_FORMAT_R11G11B10_FLOAT) {
       goto out_lookup;




More information about the mesa-commit mailing list