mesa/dri: Move context flag validation down into the drivers
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 10 Sep 2012 14:31:24 +0000 (17:31 +0300)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Nov 2013 01:40:05 +0000 (17:40 -0800)
commit7b140d1bdaf07badebdc5ac222ab4ff4d182ebec
tree90cb97e5013624b082fd6944a45453651ab78389
parent17c94de33baf66ad5c264b7a046394c651bc6126
mesa/dri: Move context flag validation down into the drivers

Soon some drivers will support a different set of flags than other
drivers.  If some flags have to be filtered in the driver, we might as
well filter all of them in the driver.

The changes in nouveau use tabs because nouveau seems to have it's own
indentation rules.

v2: Fix some rebase failures noticed by Ken (returning the wrong types,
etc.).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/state_trackers/dri/common/dri_context.c
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/nouveau/nouveau_context.c
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/radeon/radeon_context.c