summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i830/i830_screen.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2004-05-07 17:30:31 +0000
committerIan Romanick <idr@us.ibm.com>2004-05-07 17:30:31 +0000
commitd81d2aeca8ee43ddec39a043a5acb4cb44be70ac (patch)
tree954d5e2024d4f7bf68e9eb40d514630fba0bbd0c /src/mesa/drivers/dri/i830/i830_screen.c
parentf539860f792feaec69f8033f2b0b86cc2212ee0b (diff)
Add support for the 3rd and 4th texture units. The actual number of
available units is configurable via the texture_units option.
Diffstat (limited to 'src/mesa/drivers/dri/i830/i830_screen.c')
-rw-r--r--src/mesa/drivers/dri/i830/i830_screen.c15
1 files changed, 15 insertions, 0 deletions
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;