loader_dri3/glx/egl: Reinstate the loader_dri3_vtable get_dri_screen callback
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 9 Feb 2018 08:37:19 +0000 (09:37 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 20 Feb 2018 09:36:53 +0000 (10:36 +0100)
commitf386776ea55f86d0288c955cf4cf877a1b4a027d
treed4017276e13ad4dbf23d556b3cb4f6ce3cb9fbab
parent80c31f7837cd319910d94d780f5048de6cce0adb
loader_dri3/glx/egl: Reinstate the loader_dri3_vtable get_dri_screen callback

Removing this callback caused rendering corruption in some multi-screen cases,
so it is reinstated but without the drawable argument which was never used
by implementations and was confusing since the drawable could have been
created with another screen.

Cc: "17.3 18.0" mesa-stable@lists.freedesktop.org
Fixes: 5198e48a0d (loader_dri3/glx/egl: Remove the loader_dri3_vtable get_dri_screen callback)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105013
Reported-by: Daniel van Vugt <daniel.van.vugt@canonical.com>
Tested-by: Timo Aaltonen <tjaalton@ubuntu.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/egl/drivers/dri2/platform_x11_dri3.c
src/glx/dri3_glx.c
src/loader/loader_dri3_helper.c
src/loader/loader_dri3_helper.h