From 79e2e1c1f7b02f985ab48794ecac1d1cf0bad6da Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 13 Mar 2007 20:40:14 +0000 Subject: Assign AttribPtr[POS] to fix depth output. --- src/mesa/drivers/dri/i915tex/intel_tris.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i915tex/intel_tris.c b/src/mesa/drivers/dri/i915tex/intel_tris.c index f76be50cc5..02a906b2e3 100644 --- a/src/mesa/drivers/dri/i915tex/intel_tris.c +++ b/src/mesa/drivers/dri/i915tex/intel_tris.c @@ -46,6 +46,7 @@ #include "intel_reg.h" #include "intel_span.h" #include "intel_tex.h" +#include "intel_state.h" static void intelRenderPrimitive(GLcontext * ctx, GLenum prim); static void intelRasterPrimitive(GLcontext * ctx, GLenum rprim, @@ -157,7 +158,7 @@ intelExtendInlinePrimitive(struct intel_context *intel, GLuint dwords) * Emit primitives as inline vertices * ***********************************************************************/ -#ifdef __i386__ +#if !defined(DEBUG) && defined(__i386__) #define COPY_DWORDS( j, vb, vertsize, v ) \ do { \ int __tmp; \ @@ -172,6 +173,7 @@ do { \ do { \ for ( j = 0 ; j < vertsize ; j++ ) { \ vb[j] = ((GLuint *)v)[j]; \ + _mesa_printf("%d: %08x (%f)\n", j, vb[j], ((GLfloat *)v)[j]); \ } \ vb += vertsize; \ } while (0) @@ -905,7 +907,10 @@ static void intelRenderStart(GLcontext * ctx) { struct intel_context *intel = intel_context(ctx); + TNLcontext *tnl = TNL_CONTEXT(ctx); + struct vertex_buffer *VB = &tnl->vb; + VB->AttribPtr[VERT_ATTRIB_POS] = VB->NdcPtr; intel_emit_state(intel); } -- cgit v1.2.3