From b6c5116171c686fb251320491dcdc1450e7b6212 Mon Sep 17 00:00:00 2001 From: Vladimir Dergachev Date: Mon, 27 Jun 2005 15:56:14 +0000 Subject: Rename unchecked state to match DRM driver. Emit wait idle and pacify r300 before emitting state - this seems to improve stability. --- src/mesa/drivers/dri/r300/r300_maos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/r300/r300_maos.c') diff --git a/src/mesa/drivers/dri/r300/r300_maos.c b/src/mesa/drivers/dri/r300/r300_maos.c index 946bf09ae6..1908ac07ac 100644 --- a/src/mesa/drivers/dri/r300/r300_maos.c +++ b/src/mesa/drivers/dri/r300/r300_maos.c @@ -438,7 +438,7 @@ void r300EmitArrays(GLcontext * ctx, GLboolean immd) } /* Set the rest of INPUT_ROUTE_0 to 0 */ //for(i=((count+1)>>1); i<8; i++)r300->hw.vir[0].cmd[R300_VIR_CNTL_0+i]=(0x0); - ((drm_r300_cmd_header_t*)r300->hw.vir[0].cmd)->unchecked_state.count = (nr+1)>>1; + ((drm_r300_cmd_header_t*)r300->hw.vir[0].cmd)->packet0.count = (nr+1)>>1; /* Mesa assumes that all missing components are from (0, 0, 0, 1) */ @@ -481,7 +481,7 @@ void r300EmitArrays(GLcontext * ctx, GLboolean immd) } /* Set the rest of INPUT_ROUTE_1 to 0 */ //for(i=((count+1)>>1); i<8; i++)r300->hw.vir[1].cmd[R300_VIR_CNTL_0+i]=0x0; - ((drm_r300_cmd_header_t*)r300->hw.vir[1].cmd)->unchecked_state.count = (nr+1)>>1; + ((drm_r300_cmd_header_t*)r300->hw.vir[1].cmd)->packet0.count = (nr+1)>>1; /* Set up input_cntl */ /* I don't think this is needed for vertex buffers, but it doesn't hurt anything */ -- cgit v1.2.3