dri: Fix robust context creation via EGL attribute
authorChad Versace <chad.versace@intel.com>
Mon, 11 Apr 2016 22:12:15 +0000 (15:12 -0700)
committerChad Versace <chad.versace@intel.com>
Fri, 15 Apr 2016 00:38:41 +0000 (17:38 -0700)
commit7a835b3fd9b171eedecfdb23d326eae4bc0cb6d4
tree8d20bc8bbd21939c40c247e07c2d88c9c44abcec
parent8f4340c5e63d5bb2dd69a09d044832390ea47e14
dri: Fix robust context creation via EGL attribute

driCreateContextAttribs() emits an error if bit
__DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS is set for an ES context.  But,
EGL_EXT_create_context_robustness and EGL 1.5 both allow creation of
robust ES contexts. One requests a robust ES context by setting the
EGL_CONTEXT_OPENGL_ROBUST_ACCESS *attribute*, which Mesa's EGL layer
translates into the __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS *bit*.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/drivers/dri/common/dri_util.c