R200: fix build when RADEON_DEBUG_BO is set
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 17 Jul 2009 22:10:48 +0000 (18:10 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Fri, 17 Jul 2009 22:19:01 +0000 (18:19 -0400)
src/mesa/drivers/dri/r200/r200_cmdbuf.c

index 25e30eda522573217170f2f375aeaa7486f2073d..d49f4fabe721754806495a54272bbfc38dad6451 100644 (file)
@@ -234,9 +234,15 @@ GLushort *r200AllocEltsOpenEnded( r200ContextPtr rmesa,
    
    radeonEmitState(&rmesa->radeon);
 
+#ifdef RADEON_DEBUG_BO
+   rmesa->radeon.tcl.elt_dma_bo = radeon_bo_open(rmesa->radeon.radeonScreen->bom,
+                                         0, R200_ELT_BUF_SZ, 4,
+                                                RADEON_GEM_DOMAIN_GTT, 0, "ELT");
+#else
    rmesa->radeon.tcl.elt_dma_bo = radeon_bo_open(rmesa->radeon.radeonScreen->bom,
                                          0, R200_ELT_BUF_SZ, 4,
                                          RADEON_GEM_DOMAIN_GTT, 0);
+#endif
    rmesa->radeon.tcl.elt_dma_offset = 0;
    rmesa->tcl.elt_used = min_nr * 2;