vl/dri: add color depth to vl winsys
authorLeo Liu <leo.liu@amd.com>
Mon, 10 Sep 2018 20:02:29 +0000 (16:02 -0400)
committerLeo Liu <leo.liu@amd.com>
Thu, 13 Sep 2018 18:28:32 +0000 (14:28 -0400)
For VDPAU use later

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/auxiliary/vl/vl_winsys.h
src/gallium/auxiliary/vl/vl_winsys_dri3.c

index bfb6018007941a6578b5d3b540386c3225327d71..3a35cb6a8596840eab0cd5ccf0b82825d3fccb0a 100644 (file)
@@ -70,6 +70,7 @@ struct vl_screen
    struct pipe_loader_device *dev;
 
    void *xcb_screen;
+   uint32_t color_depth;
 };
 
 #ifdef HAVE_X11_PLATFORM
index 30e732e38eb240e8bbaccac29dca885dc8bf0a34..82b6445a767d276b4bb887b9b86cabb1774ce41f 100644 (file)
@@ -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))