Mesa (master): r200: Fix UMS notto emit stp.
Pauli Nieminen
suokko at kemper.freedesktop.org
Tue Feb 9 19:39:18 UTC 2010
Module: Mesa
Branch: master
Commit: 9e587dbd78bdcf8608bce7cb3dcd05d9527b641e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9e587dbd78bdcf8608bce7cb3dcd05d9527b641e
Author: Pauli Nieminen <suokkos at gmail.com>
Date: Mon Feb 8 11:49:10 2010 +0200
r200: Fix UMS notto emit stp.
Polgon stipples are handled by kernel in UMS. Mark the
state as never to be emited for UMS.
---
src/mesa/drivers/dri/r200/r200_state_init.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
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)
More information about the mesa-commit
mailing list