diff options
author | Dave Airlie <airlied@linux.ie> | 2007-06-17 15:44:42 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-06-17 15:44:42 +1000 |
commit | 492bc67df1ceefe7580e8d7129f6f11a2f11ea67 (patch) | |
tree | fda7b86990ec5e2e2ee2b30a2ee73e09fcfeac6e | |
parent | 780ae9f17d23dc1a553e66298d223582f8a7f022 (diff) |
swtcl add debug and fix offset
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_swtcl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_swtcl.c b/src/mesa/drivers/dri/r300/r300_swtcl.c index fc101c3e75..e7c2d8f496 100644 --- a/src/mesa/drivers/dri/r300/r300_swtcl.c +++ b/src/mesa/drivers/dri/r300/r300_swtcl.c @@ -231,7 +231,8 @@ static void flush_last_swtcl_prim( r300ContextPtr rmesa ) struct r300_dma_region *current = &rmesa->dma.current; // GLuint current_offset = rmesa->state.swtcl_dma.aos_offset; - GLuint current_offset = r300_mem_offset(rmesa,current->buf->id); + GLuint current_offset; + current_offset = GET_START(current); // assert (!(rmesa->swtcl.hw_primitive & R200_VF_PRIM_WALK_IND)); assert (current->start + @@ -669,6 +670,7 @@ void r300EmitVbufPrim(r300ContextPtr rmesa, GLuint primitive, GLuint vertex_nr) num_verts = r300NumVerts(rmesa, vertex_nr, primitive); r300EmitState(rmesa); + fprintf(stderr, "num verts is %d, type is %d\n", num_verts, type); start_packet3(CP_PACKET3(R300_PACKET3_3D_DRAW_VBUF_2, 0), 0); e32(R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_LIST | (num_verts << 16) | type); } |