egl: Wrap dri3 surface primitive around dri2 egl surface
authorYogesh Marathe <yogesh.marathe@intel.com>
Fri, 15 Sep 2017 17:32:41 +0000 (18:32 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 19 Sep 2017 11:12:25 +0000 (12:12 +0100)
commit0b3fc8f3054fe88d5368f6c747289cdeceb1c5d7
tree03386a69a73a79569d23cfc94b6031a3a727c286
parentc1b01370486d203a6bccff2161afb288cfda1de3
egl: Wrap dri3 surface primitive around dri2 egl surface

Originally dri3 egl surface was wrapped around _EGLSurface.

With next commit we'll add additional attributes, which will be checked
from generic code. Thus in order to access that we need to use
dri2_egl_surface.

The name of the latter is a misnomer - it should really be dri or
dri_common...

Signed-off-by: Yogesh Marathe <yogesh.marathe@intel.com>
[Emil Velikov: commit message, squash the patches appropriately, add
relevant _eglInitSurface hunk to prevent build breakage]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_x11_dri3.c
src/egl/drivers/dri2/platform_x11_dri3.h