r300: The empty check_space doesn't and never has done anything; removed it.
authorOliver McFadden <z3ro.geek@gmail.com>
Wed, 9 May 2007 15:57:30 +0000 (15:57 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Wed, 9 May 2007 15:57:30 +0000 (15:57 +0000)
src/mesa/drivers/dri/r300/r300_emit.h
src/mesa/drivers/dri/r300/r300_render.c

index 8922d8c57d964a90cda7ed2a9ed58be4eee69466..bccb84933ad5d373009e54886acbecc0ed5c420b 100644 (file)
 
 #define CP_PACKET0(reg, n)     (RADEON_CP_PACKET0 | ((n)<<16) | ((reg)>>2))
 
-void static inline check_space(int dwords)
-{
-}
-
 static __inline__ uint32_t cmdpacket0(int reg, int count)
 {
        drm_r300_cmd_header_t cmd;
@@ -239,7 +235,6 @@ static void inline fire_AOS(r300ContextPtr rmesa, int vertex_count, int type)
        int cmd_reserved = 0;
        int cmd_written = 0;
        drm_radeon_cmd_header_t *cmd = NULL;
-       check_space(9);
 
        start_packet3(RADEON_CP_PACKET3_3D_DRAW_VBUF_2, 0);
        e32(R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_LIST | (vertex_count << 16)
index 665b7dc29d9fb6361a7619755772760af6d0315f..87990247457504c423d6c6f867b2a3b7a1d3754c 100644 (file)
@@ -207,8 +207,6 @@ static void inline r300FireEB(r300ContextPtr rmesa, unsigned long addr,
        t_addr = addr & ~0x1d;
        magic_2 = (vertex_count + 1 + (t_addr & 0x2)) / 2 + magic_1;
 
-       check_space(6);
-
        start_packet3(RADEON_CP_PACKET3_3D_DRAW_INDX_2, 0);
        if (elt_size == 4) {
                e32(R300_VAP_VF_CNTL__PRIM_WALK_INDICES |