mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 08:58:30 +02:00
vl/dri: add color depth to vl winsys
For VDPAU use later Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
cd77d49ecf
commit
4d8ec12f03
2 changed files with 2 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ struct vl_screen
|
|||
struct pipe_loader_device *dev;
|
||||
|
||||
void *xcb_screen;
|
||||
uint32_t color_depth;
|
||||
};
|
||||
|
||||
#ifdef HAVE_X11_PLATFORM
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue