egl/x11: Honor the EGL_PLATFORM_X11_SCREEN_EXT attribute
authorAdam Jackson <ajax@redhat.com>
Tue, 2 May 2017 16:27:01 +0000 (12:27 -0400)
committerAdam Jackson <ajax@redhat.com>
Thu, 4 May 2017 16:52:18 +0000 (12:52 -0400)
commitddb99127a6f6c6d0284f3395e0b06aed575f0ecd
tree575cdd13039615992811e91f7fc110a69dcdf21f
parent939b015736d5091faeabde4f5a373e6a1612c5ed
egl/x11: Honor the EGL_PLATFORM_X11_SCREEN_EXT attribute

Introduce _egl_display::Options::Platforms for private storage.
For X11 platforms we can use it for the screen number as set by
EGL_PLATFORM_X11_SCREEN_EXT.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
src/egl/drivers/dri2/platform_x11.c
src/egl/main/egldisplay.c
src/egl/main/egldisplay.h