i915: Validate API and version in i915CreateContext
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 7 Aug 2012 19:30:14 +0000 (12:30 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 14 Aug 2012 00:36:50 +0000 (17:36 -0700)
commitdb273724c9484d513f5caa34729475d2873d9f7b
tree1045c40489f5d323dfc023d64a3d4ca794293156
parenta81e4b3e9272f70ab9074f1c133dda94c58daeff
i915: Validate API and version in i915CreateContext

v2: Use base-10 for versions like gl_context::Version.  Suggested by Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i915/i915_context.c
src/mesa/drivers/dri/i915/i915_context.h
src/mesa/drivers/dri/intel/intel_screen.c