i965: Split code to set ctx->Const values into a helper function.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 3 Jul 2013 00:57:42 +0000 (17:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 9 Jul 2013 21:08:45 +0000 (14:08 -0700)
commit963d9f78a4931b7dd73d904b4c1e5f01010cd477
tree5b51fc48a2ff2229bffd38da62666b7b31982a7d
parentd13c12057356407e543ddebbef7fcf13f5195326
i965: Split code to set ctx->Const values into a helper function.

brwCreateContext() has a lot of random things to do.  Factoring out the
part that initializes ctx->Const values and shader compiler options
makes the main function a bit easier to read.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Chris Forbes <chrisf@ijw.co.nz>
Acked-by: Paul Berry <stereotype441@gmail.com>
Acked-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_context.c