}
}
-void r200FlushElts( r200ContextPtr rmesa )
+void r200FlushElts(GLcontext *ctx)
{
+ r200ContextPtr rmesa = R200_CONTEXT(ctx);
int dwords;
int nr, elt_used = rmesa->tcl.elt_used;
int elt_dma_offset; /** Offset into this buffer object, in bytes */
int elt_used;
- void (*flush) (r200ContextPtr);
+ void (*flush) (GLcontext *ctx);
struct radeon_dma_region vertex_data[15];
};
GLboolean needproj;
struct radeon_bo *bo;
- void (*flush) (r200ContextPtr);
+ void (*flush) (GLcontext *ctx);
};
if (R200_DEBUG & DEBUG_IOCTL)
fprintf(stderr, "%s\n", __FUNCTION__);
- if (rmesa->dma.flush)
- rmesa->dma.flush( ctx );
+ if (rmesa->swtcl.flush)
+ rmesa->swtcl.flush( ctx );
if (rmesa->tcl.flush)
- rmesa->tcl.flush( rmesa );
+ rmesa->tcl.flush( ctx );
r200EmitState( rmesa );
GLuint primitive,
GLuint vertex_nr );
-extern void r200FlushElts(r200ContextPtr rmesa);
-
+extern void r200FlushElts(GLcontext *ctx);
extern GLushort *r200AllocEltsOpenEnded( r200ContextPtr rmesa,
GLuint primitive,
*/
#define R200_NEWPRIM( rmesa ) \
do { \
- if ( rmesa->dma.flush ) \
- rmesa->dma.flush( rmesa->radeon.glCtx ); \
+ if ( rmesa->swtcl.flush ) \
+ rmesa->swtcl.flush( rmesa->radeon.glCtx ); \
} while (0)
/* Can accomodate several state changes and primitive changes without
*/
#define R200_FIREVERTICES( rmesa ) \
do { \
- if ( rmesa->store.cmd_used || rmesa->dma.flush ) { \
+ if ( rmesa->swtcl.flush || rmesa->tcl.flush ) { \
r200Flush( rmesa->radeon.glCtx ); \
} \
} while (0)
r200ContextPtr rmesa = R200_CONTEXT( ctx );
r200SetVertexFormat( ctx );
-
- if (rmesa->dma.flush != 0 &&
- rmesa->dma.flush != flush_last_swtcl_prim)
- rmesa->dma.flush( ctx );
}
if (R200_DEBUG & DEBUG_IOCTL)
fprintf(stderr, "%s\n", __FUNCTION__);
- rmesa->dma.flush = NULL;
+ rmesa->swtcl.flush = NULL;
radeon_bo_unmap(rmesa->swtcl.bo);
rcommonEnsureCmdBufSpace(rmesa,
}
else {
if (rmesa->tcl.flush)
- rmesa->tcl.flush( rmesa );
+ rmesa->tcl.flush( rmesa->radeon.glCtx );
rcommonEnsureCmdBufSpace(rmesa, AOS_BUFSZ(rmesa->tcl.nr_aos_components));
tnl->Driver.NotifyMaterialChange = r200UpdateMaterial;
- if ( rmesa->dma.flush )
- rmesa->dma.flush( rmesa->radeon.glCtx );
+ if ( rmesa->swtcl.flush )
+ rmesa->swtcl.flush( rmesa->radeon.glCtx );
- rmesa->dma.flush = NULL;
+ rmesa->swtcl.flush = NULL;
R200_STATECHANGE( rmesa, vap );
rmesa->hw.vap.cmd[VAP_SE_VAP_CNTL] |= R200_VAP_TCL_ENABLE;