mesa: Prevent classic swrast crash on a surfaceless context v2.
authorMathias Fröhlich <mathias.froehlich@web.de>
Wed, 8 May 2019 06:07:24 +0000 (08:07 +0200)
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>
Tue, 28 May 2019 06:27:16 +0000 (08:27 +0200)
commit1d0a8cf40d87ee903d7738f05bf87fd4141ce40d
treec3c61aa6bdc534bb220a4698cff3053cda67572a
parent15cb19ed6fb32c707de667c95819e090ee5dc140
mesa: Prevent classic swrast crash on a surfaceless context v2.

This fixes the egl_mesa_platform_surfaceless piglit test as well
as the new egl_ext_device_base piglit test on classic swrast.

v2: Fix swrast surfaceless contexts on the driver side.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/mesa/drivers/dri/swrast/swrast.c