From d81d2aeca8ee43ddec39a043a5acb4cb44be70ac Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 7 May 2004 17:30:31 +0000 Subject: Add support for the 3rd and 4th texture units. The actual number of available units is configurable via the texture_units option. --- src/mesa/drivers/dri/i830/i830_screen.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/mesa/drivers/dri/i830/i830_screen.c') diff --git a/src/mesa/drivers/dri/i830/i830_screen.c b/src/mesa/drivers/dri/i830/i830_screen.c index b0117210f5..1aa4027096 100644 --- a/src/mesa/drivers/dri/i830/i830_screen.c +++ b/src/mesa/drivers/dri/i830/i830_screen.c @@ -50,6 +50,16 @@ #include "i830_dri.h" +#include "xmlpool.h" + +const char __driConfigOptions[] = +DRI_CONF_BEGIN + DRI_CONF_SECTION_PERFORMANCE + DRI_CONF_MAX_TEXTURE_UNITS(4,2,4) + DRI_CONF_SECTION_END +DRI_CONF_END; +const GLuint __driNConfigOptions = 1; + static int i830_malloc_proxy_buf(drmBufMapPtr buffers) { @@ -152,6 +162,11 @@ static GLboolean i830InitDriver(__DRIscreenPrivate *sPriv) return GL_FALSE; } + /* parse information in __driConfigOptions */ + driParseOptionInfo (&i830Screen->optionCache, + __driConfigOptions, __driNConfigOptions); + + i830Screen->driScrnPriv = sPriv; sPriv->private = (void *)i830Screen; -- cgit v1.2.3