i965: Pull most driconf option handling into a centralized function.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 27 Sep 2013 17:40:57 +0000 (10:40 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 13 Oct 2013 07:10:43 +0000 (00:10 -0700)
commit90511faedddff834ab1f6d92f4d5d25a3c32bd82
treebdeabd1744f6a94f396cfc358d0e25abc67502ec
parent0fb525b87ceae543d581a5755ca547b54c58aa76
i965: Pull most driconf option handling into a centralized function.

Using a helper function clarifies the context initialization code.

I would've liked to completely centralize it, but moving the optionCache
code from intelInitExtensions into here would've required setting flags
in the context, which seems like a waste.

v2: Rebase for the introduction of disable_derivative_optimization.

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