i965: Move a bunch of code from intelInitContext to brwCreateContext.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 25 Sep 2013 22:57:08 +0000 (15:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 13 Oct 2013 07:10:43 +0000 (00:10 -0700)
commit0fb525b87ceae543d581a5755ca547b54c58aa76
treecb377451087c1a3dd43e6972bb36c2f1c9041df3
parenta25caad9e4ed848e8b1169376901d6b9889faa80
i965: Move a bunch of code from intelInitContext to brwCreateContext.

Now that intelInitContext isn't shared between i915 and i965, the split
is fairly arbitrary.  This patch moves a bunch of the basic context
creation and generation checking code up to the top-level function
(and slightly earlier).

More will follow.

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