egl/dri2: refactor dri2_query_surface, swrastGetDrawableInfo
authorTapani Pälli <tapani.palli@intel.com>
Tue, 8 Aug 2017 07:52:26 +0000 (10:52 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 9 Aug 2017 05:42:11 +0000 (08:42 +0300)
commitb65a91e5821e3db4baad06d1fa13f02845c06b9d
tree0d6f927d249fbd7d86a05da76481947a890ba79a
parenta1c9a6da18b3fdb094804d1fa2529024261ed265
egl/dri2: refactor dri2_query_surface, swrastGetDrawableInfo

Currently swrastGetDrawableInfo always initializes w and h, patch
refactors function as x11_get_drawable_info that returns success and
sets the values only if no error happened. Add swrastGetDrawableInfo
wrapper function as expected by DRI extension.

v2: init w,y,w,h in swrastGetDrawableInfo (Eric)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reported-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_x11.c