surfaceless: Fix swrast path.
authorEric Anholt <eric@anholt.net>
Tue, 23 Jul 2019 20:18:21 +0000 (13:18 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 13 Aug 2019 17:29:34 +0000 (10:29 -0700)
commit6a8d39dccdc1268e439a9ea0bc6fc89b3cd36815
treea9e9fbd92215c2e8f782ef47108f32ad6e688d05
parent030aa6e184bdff6e5cf9f18f703577e8d36c0549
surfaceless: Fix swrast path.

We get a getDrawableInfo() call in the MakeCurrent path, which
platform_device was handling correctly by returning the pbuffer's
width/height but platform_surfaceless segfaulted for.  Reuse
platform_device's implementation.

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_device.c
src/egl/drivers/dri2/platform_surfaceless.c