summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/vl/vl_winsys.h1
-rw-r--r--src/gallium/auxiliary/vl/vl_winsys_dri3.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/vl/vl_winsys.h b/src/gallium/auxiliary/vl/vl_winsys.h
index bfb60180079..3a35cb6a859 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 30e732e38eb..82b6445a767 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))