summaryrefslogtreecommitdiff
path: root/src/mesa/array_cache
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2000-12-28 22:11:04 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2000-12-28 22:11:04 +0000
commit88f3b89a2cb77766d2009b9868c44e03abe2dbb2 (patch)
treec382e12f28f661a17974ea79b394fbabf101d89e /src/mesa/array_cache
parente5d6fb20a5c2519ac216a9fa247b5922e76528c1 (diff)
Add render stage for unclipped vb's to fx driver.
Bump MAX_TEXTURE_UNITS to 8 Fix mem. leak in destroy_lists Fix crash in q3 (cva generally)
Diffstat (limited to 'src/mesa/array_cache')
-rw-r--r--src/mesa/array_cache/ac_import.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/array_cache/ac_import.c b/src/mesa/array_cache/ac_import.c
index ca971dc1d8..e7fb795ef5 100644
--- a/src/mesa/array_cache/ac_import.c
+++ b/src/mesa/array_cache/ac_import.c
@@ -1,4 +1,4 @@
-/* $Id: ac_import.c,v 1.1 2000/12/26 15:14:04 keithw Exp $ */
+/* $Id: ac_import.c,v 1.2 2000/12/28 22:11:05 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -45,6 +45,8 @@ static void reset_texcoord( GLcontext *ctx, GLuint unit )
{
ACcontext *ac = AC_CONTEXT(ctx);
+/* fprintf(stderr, "%s %d\n", __FUNCTION__, unit); */
+
if (ctx->Array._Enabled & _NEW_ARRAY_TEXCOORD(unit))
ac->Current.TexCoord[unit] = &ctx->Array.TexCoord[unit];
else {
@@ -69,6 +71,8 @@ static void reset_vertex( GLcontext *ctx )
ac->Current.Vertex = &ctx->Array.Vertex;
ac->Writeable.Vertex = GL_FALSE;
ac->NewArrayState &= ~_NEW_ARRAY_VERTEX;
+
+/* fprintf(stderr, "%s\n", __FUNCTION__); */
}
@@ -178,6 +182,8 @@ static void import_texcoord( GLcontext *ctx, GLuint unit,
ASSERT(stride == 4*sizeof(GLfloat) || stride == 0);
ASSERT(ac->count - ac->start < ctx->Const.MaxArrayLockSize);
+/* fprintf(stderr, "%s %d old ptr %p\n", __FUNCTION__, unit, from->Ptr); */
+
_math_trans_4f( to->Ptr,
from->Ptr,
from->StrideB,
@@ -191,6 +197,8 @@ static void import_texcoord( GLcontext *ctx, GLuint unit,
to->Type = GL_FLOAT;
ac->Current.TexCoord[unit] = to;
ac->Writeable.TexCoord[unit] = GL_TRUE;
+
+/* fprintf(stderr, "%s %d new ptr %p\n", __FUNCTION__, unit, to->Ptr); */
}
static void import_vertex( GLcontext *ctx,
@@ -200,6 +208,8 @@ static void import_vertex( GLcontext *ctx,
struct gl_client_array *from = ac->Current.Vertex;
struct gl_client_array *to = &ac->Cache.Vertex;
+/* fprintf(stderr, "(ac) %s\n", __FUNCTION__); */
+
/* Limited choices at this stage:
*/
ASSERT(type == GL_FLOAT);