dri: Pass API_OPENGL_CORE through to the drivers
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 7 Aug 2012 18:26:19 +0000 (11:26 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 14 Aug 2012 00:17:12 +0000 (17:17 -0700)
commit70f47505a2e5d4cf949b7c2650f3d9f6559bacb3
treee68e75ad6891bf9faf3189deff29d189de704269
parent7e81f553bccda66fafa769f8456b4918d088181a
dri: Pass API_OPENGL_CORE through to the drivers

This forces the drivers to do at least some validation of context API
and version before creating the context.  In r100 and r200 drivers, this
means that they don't do any post-hoc validation.

v2: Actually reject compatibility profile 3.2+ contexts.  Thanks Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/intel/intel_screen.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
src/mesa/drivers/dri/swrast/swrast.c