[Mesa-dev] [PATCH 0/3] egl_dri2: Enable EGL_KHR_create_context when using swrast

Boyan Ding boyan.j.ding at gmail.com
Sun Jun 21 08:06:29 PDT 2015


This series of patches add support for EGL_KHR_create_context when
using swrast. The first patch moves context_attrib filling into a
separate function for reuse in swrast. The second one uses
createContextAttribs in swrast extension and the third one enables
EGL_KHR_create_context.

I tested the patches with piglit 16794f0 using the following command:

LIBGL_ALWAYS_SOFTWARE=1 ./piglit run -p x11_egl quick

and the result went from
 crash:3  fail:91  pass:7234  skip:20513  warn:2
to
 crash:3  fail:141 pass:15076 skip:12621  warn:2
without regression.

One thing worth notice is that three tests of EGL spec went
skip -> fail, which, however, is the fault of egl/main code[1].

Reference: https://bugs.freedesktop.org/show_bug.cgi?id=80821
[1]: https://bugs.freedesktop.org/show_bug.cgi?id=91044

Boyan Ding (3):
  egl_dri2: Move filling context_attrib array in a separate function
  egl_dri2: Use createContextAttribs if swrast version >= 3
  egl_dri2: Add support for EGL_KHR_create_contest when using swrast

 src/egl/drivers/dri2/egl_dri2.c | 125 ++++++++++++++++++++++++++--------------
 1 file changed, 82 insertions(+), 43 deletions(-)

-- 
2.4.1



More information about the mesa-dev mailing list