egl: set preserved behavior for surface only if config supports it
authorTapani Pälli <tapani.palli@intel.com>
Wed, 26 Oct 2016 10:54:51 +0000 (13:54 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 27 Oct 2016 04:12:51 +0000 (07:12 +0300)
commit2035930966b05a7c4dd1f6559d66b5a3b41e01a5
treea95cd0384bbbd892a876234abc40797dfa96dfd5
parent671da8d8ba6f1a319351a2738eb420a148ea6697
egl: set preserved behavior for surface only if config supports it

Otherwise we can end up with mismatching behavior between config and
surface when client queries surface attributes. As example, configs
for DRI3 do not support preserved behavior but here we were setting
preserved behavior for pixmap and pbuffer.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98326
Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Tested-by: Mark Janes <mark.a.janes@intel.com>
src/egl/main/eglsurface.c