#include "tnl/tnl.h"
#include "tnl/t_vertex.h"
#include "tnl/t_context.h"
-
+#include "utils.h"
/***************************************
* Mesa's Driver Functions
***************************************/
-static const char * const card_extensions[] =
+static const struct dri_extension i830_extensions[] =
{
- "GL_ARB_texture_env_crossbar",
- "GL_NV_blend_square",
- NULL
+ { "GL_ARB_texture_env_crossbar", NULL },
+ { NULL, NULL }
};
intel->nr_heaps = 1;
intel->texture_heaps[0] =
driCreateTextureHeap( 0, intel,
- intel->intelScreen->textureSize,
+ intel->intelScreen->tex.size,
12,
I830_NR_TEX_REGIONS,
intel->sarea->texList,
4,
11, /* max 2D texture size is 2048x2048 */
8, /* max 3D texture size is 256^3 */
- 0, /* max CUBE. not supported */
+ 10, /* max CUBE texture size is 1024x1024 */
11, /* max RECT. supported */
12,
GL_FALSE );
intel->verts = TNL_CONTEXT(ctx)->clipspace.vertex_buf;
- driInitExtensions( ctx, card_extensions, GL_FALSE );
+ driInitExtensions( ctx, i830_extensions, GL_FALSE );
i830InitState( i830 );