summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/savage/savagestate.c
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2005-01-08 15:03:25 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2005-01-08 15:03:25 +0000
commit675b92515ab016038ab47f37d83631fb3713384e (patch)
tree13666280e4f42eea8c8a2f9b2654c832ee9f164f /src/mesa/drivers/dri/savage/savagestate.c
parent1074eae704f4f68a721cfb9810cd0fde3d3aed07 (diff)
Added state debugging option (SAVAGE_DEBUG=state).
Fixed: Use savageEmitChangedRegs instead of savageEmitContiguousRegs for emitting Savage4.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagestate.c')
-rw-r--r--src/mesa/drivers/dri/savage/savagestate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/savage/savagestate.c b/src/mesa/drivers/dri/savage/savagestate.c
index 107344c703..b57fa39dd8 100644
--- a/src/mesa/drivers/dri/savage/savagestate.c
+++ b/src/mesa/drivers/dri/savage/savagestate.c
@@ -1473,6 +1473,8 @@ static void savageEmitContiguousRegs (savageContextPtr imesa,
* this update is done *after* savageAllocCmdBuf. */
for (i = first - SAVAGE_FIRST_REG; i <= last - SAVAGE_FIRST_REG; ++i)
imesa->oldRegs.ui[i] = imesa->regs.ui[i];
+ if (SAVAGE_DEBUG & DEBUG_STATE)
+ fprintf (stderr, "Emitting regs 0x%02x-0x%02x\n", first, last);
}
static void savageEmitChangedRegs (savageContextPtr imesa,
GLuint first, GLuint last) {
@@ -1530,7 +1532,7 @@ static void savageUpdateRegister_s4(savageContextPtr imesa)
/* the savage4 uses the contiguous range of BCI registers 0x1e-0x39
* 0x1e-0x27 are local, no need to check them for global changes */
- savageEmitContiguousRegs (imesa, 0x1e, 0x39);
+ savageEmitChangedRegs (imesa, 0x1e, 0x39);
imesa->dirty=0;
}