From: Pauli Nieminen Date: Mon, 8 Feb 2010 09:49:10 +0000 (+0200) Subject: r200: Fix UMS notto emit stp. X-Git-Tag: 062012170305~12852^2~1042 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e587dbd78bdcf8608bce7cb3dcd05d9527b641e;p=profile%2Fivi%2Fmesa.git r200: Fix UMS notto emit stp. Polgon stipples are handled by kernel in UMS. Mark the state as never to be emited for UMS. --- diff --git a/src/mesa/drivers/dri/r200/r200_state_init.c b/src/mesa/drivers/dri/r200/r200_state_init.c index e06437b..1606553 100644 --- a/src/mesa/drivers/dri/r200/r200_state_init.c +++ b/src/mesa/drivers/dri/r200/r200_state_init.c @@ -894,7 +894,10 @@ void r200InitState( r200ContextPtr rmesa ) } } - ALLOC_STATE( stp, polygon_stipple, STP_STATE_SIZE, "STP/stp", 0 ); + if (rmesa->radeon.radeonScreen->kernel_mm) + ALLOC_STATE( stp, polygon_stipple, STP_STATE_SIZE, "STP/stp", 0 ); + else + ALLOC_STATE( stp, never, STP_STATE_SIZE, "STP/stp", 0 ); for (i = 0; i < 6; i++) if (rmesa->radeon.radeonScreen->kernel_mm)