From: Alex Deucher Date: Fri, 17 Jul 2009 22:10:48 +0000 (-0400) Subject: R200: fix build when RADEON_DEBUG_BO is set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5008269cfeb91bd5e763e48c26f02b78568c4cff;p=mesa.git R200: fix build when RADEON_DEBUG_BO is set --- diff --git a/src/mesa/drivers/dri/r200/r200_cmdbuf.c b/src/mesa/drivers/dri/r200/r200_cmdbuf.c index 25e30eda522..d49f4fabe72 100644 --- a/src/mesa/drivers/dri/r200/r200_cmdbuf.c +++ b/src/mesa/drivers/dri/r200/r200_cmdbuf.c @@ -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;