egl/dri2: implement query surface hook
authorTapani Pälli <tapani.palli@intel.com>
Wed, 21 Dec 2016 08:21:34 +0000 (10:21 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 27 Dec 2016 06:01:08 +0000 (08:01 +0200)
commit4d6d4f939e0af4252e0b6ba3fcb2c9f4101e9e39
treed445ba5c0d419e83cc238d133d8c71d8b4de5300
parentd8423772cad8245c21d1a63ed4fabb8d9e20b4fa
egl/dri2: implement query surface hook

This makes better guarantee that the values we return are
in sync what the underlying drawable currently has.

Together with dEQP change in bug #98327 this fixes following test:

   dEQP-EGL.functional.resize.surface_size.grow

v2: avoid unnecessary x11 roundtrips (Chad Versace)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98327
src/egl/drivers/dri2/platform_x11.c