diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2007-03-13 20:40:14 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2007-03-13 20:40:14 +0000 |
commit | 79e2e1c1f7b02f985ab48794ecac1d1cf0bad6da (patch) | |
tree | 62e3cb9fc9828e9ccfbb223ba9c46feb66adcbbc | |
parent | 8fd1af065ae7107d4f8be11716f3162dfea35bd7 (diff) |
Assign AttribPtr[POS] to fix depth output.
-rw-r--r-- | src/mesa/drivers/dri/i915tex/intel_tris.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); } |