#include "utils.h"
#include "xmlpool.h" /* for symbolic values of enum-type options */
-int hw_tcl_on=1;
+/* hw_tcl_on derives from future_hw_tcl_on when its safe to change it. */
+int future_hw_tcl_on=0;
+int hw_tcl_on=0;
/* Extension strings exported by the R300 driver.
*/
fprintf(stderr, "%s count %d size %d stride %d\n",
__FUNCTION__, count, size, stride);
- assert(!rvb->buf);
+ /* Gets triggered when playing with future_hw_tcl_on ...*/
+ //assert(!rvb->buf);
if (stride == 0) {
r300AllocDmaRegion(rmesa, rvb, size * 4, 4);
#include "r300_maos.h"
#include "r300_emit.h"
+extern int future_hw_tcl_on;
+
/**********************************************************************
* Hardware rasterization
*
return GL_FALSE;
}
+
/* vertex buffer implementation */
static void inline fire_EB(PREFIX unsigned long addr, int vertex_count, int type)
r300_check_render, /* check */
r300_run_render /* run */
};
-
+
static GLboolean r300_run_tcl_render(GLcontext *ctx,
struct tnl_pipeline_stage *stage)
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
struct vertex_buffer *VB = &tnl->vb;
GLuint i;
-
+ hw_tcl_on=future_hw_tcl_on;
+
if (RADEON_DEBUG & DEBUG_PRIMS)
fprintf(stderr, "%s\n", __FUNCTION__);
if(hw_tcl_on == GL_FALSE)
}
}
-static void debug_vp(GLcontext *ctx, struct vertex_program *vp)
+void debug_vp(GLcontext *ctx, struct vertex_program *vp)
{
struct vp_instruction *vpi;
int i, operand_index;
case VERT_RESULT_BFC1:
case VERT_RESULT_FOGC:
case VERT_RESULT_PSIZ:
- default: WARN_ONCE("Unknown output\n"); return 1;
+ default: WARN_ONCE("Unknown output\n"); return 10;
}
return dst->Index;
}