egl/x11: use the no-op dri2_fallback_copy_buffers for swrast
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 27 Jun 2018 17:17:37 +0000 (18:17 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 7 Aug 2018 16:59:09 +0000 (17:59 +0100)
commit5463064f7a0864dfaa1599b4d0899bd5f975da39
treeca86f9d8351cde4fa65a72f776b70da9d4e8dd32
parent670cd4080b27b52df2d303d91bcccfa544c7197a
egl/x11: use the no-op dri2_fallback_copy_buffers for swrast

Currently dri2_copy_buffers is used for swrast, which depends on the
DRI2_FLUSH extension. Since that's not a thing on software based
drivers we crash out.

Do the slightly more graceful, thing of returning EGL_FALSE.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/drivers/dri2/platform_x11.c