dri: Make classic drivers allow __DRI_CTX_FLAG_NO_ERROR.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 14 Jul 2017 21:46:09 +0000 (14:46 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 17 Jul 2017 08:37:51 +0000 (01:37 -0700)
commit6374288b62aaab0da05d9218c31ffea5724f2607
treef556fa58f97f48cf6a708af0ad3ef5da9f69bbcd
parentc745beaf10d4643024decbb06ceba3e2e56a0c79
dri: Make classic drivers allow __DRI_CTX_FLAG_NO_ERROR.

Grigori recently added EGL_KHR_create_context_no_error support,
which causes EGL to pass a new __DRI_CTX_FLAG_NO_ERROR flag to
drivers when requesting an appropriate context mode.

driContextSetFlags() will already handle it properly for us, but the
classic drivers all have code to explicitly balk at unknown flags.  We
need to let it through or they'll fail to create a no_error context.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Grigori Goronzy <greg@chown.ath.cx>
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/nouveau/nouveau_context.c
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/radeon/radeon_context.c