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

Author: Leo Liu <[email protected]>
Date:   Mon Sep 10 16:02:29 2018 -0400

vl/dri: add color depth to vl winsys

For VDPAU use later

Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>

---

 src/gallium/auxiliary/vl/vl_winsys.h      | 1 +
 src/gallium/auxiliary/vl/vl_winsys_dri3.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/gallium/auxiliary/vl/vl_winsys.h 
b/src/gallium/auxiliary/vl/vl_winsys.h
index bfb6018007..3a35cb6a85 100644
--- a/src/gallium/auxiliary/vl/vl_winsys.h
+++ b/src/gallium/auxiliary/vl/vl_winsys.h
@@ -70,6 +70,7 @@ struct vl_screen
    struct pipe_loader_device *dev;
 
    void *xcb_screen;
+   uint32_t color_depth;
 };
 
 #ifdef HAVE_X11_PLATFORM
diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c 
b/src/gallium/auxiliary/vl/vl_winsys_dri3.c
index 30e732e38e..82b6445a76 100644
--- a/src/gallium/auxiliary/vl/vl_winsys_dri3.c
+++ b/src/gallium/auxiliary/vl/vl_winsys_dri3.c
@@ -835,6 +835,7 @@ vl_dri3_screen_create(Display *display, int screen)
       free(geom_reply);
       goto close_fd;
    }
+   scrn->base.color_depth = geom_reply->depth;
    free(geom_reply);
 
    if (pipe_loader_drm_probe_fd(&scrn->base.dev, fd))

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to