dri: Choose a decent global driNConfigOptions.
authorEric Anholt <eric@anholt.net>
Wed, 26 Jun 2013 22:22:13 +0000 (15:22 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 17 Aug 2013 09:43:19 +0000 (11:43 +0200)
commitbef423bee62f7b74858f1b7f74be21405ca75eef
tree1652593dcdcb566e62637347ffe99ed55dc8e7a0
parent703a2f4219e6a95b7445138082e24cd762b1fa7e
dri: Choose a decent global driNConfigOptions.

Previously, we were asserting that each driver specified an NConfigOptions
exactly equal to the number of options they supplied, leading to frequent
bugs when people would forget to adjust the value when adjusting driver
options.  Instead, just overallocate the table by a bit and leave sanity
checking to the assert in findOption().

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/state_trackers/dri/common/dri_screen.c
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/common/xmlconfig.c
src/mesa/drivers/dri/common/xmlconfig.h
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/radeon/radeon_screen.c