summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/savage/savagetex.c
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2004-03-25 01:16:27 +0000
committerFelix Kuehling <[email protected]>2004-03-25 01:16:27 +0000
commit6e963e965cd00d69de0d868882c2c5322b39f578 (patch)
tree071a2deeeaf18f90473257ef4c8d63977f30c9f7 /src/mesa/drivers/dri/savage/savagetex.c
parentadf33a1c6f087075b65f0fbc756839481a38e10d (diff)
More state management changes:
- Don't lock in savageDDUpdateStatte, don't call savageEmitHwStateLocked - Need to grab the lock for texture uploads now - New SAVAGE_NEW_CULL bit in new_state to make sure that culling state and raster_primitive are not examined at the wrong times.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagetex.c')
-rw-r--r--src/mesa/drivers/dri/savage/savagetex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/savage/savagetex.c b/src/mesa/drivers/dri/savage/savagetex.c
index 69cb5b88664..aabf6f1280c 100644
--- a/src/mesa/drivers/dri/savage/savagetex.c
+++ b/src/mesa/drivers/dri/savage/savagetex.c
@@ -791,6 +791,7 @@ int savageUploadTexImages( savageContextPtr imesa, savageTextureObjectPtr t )
savageUpdateTexLRU( imesa, t );
if (t->dirty_images) {
+ LOCK_HARDWARE(imesa);
savageFlushVerticesLocked (imesa);
savageDmaFinish (imesa);
if (SAVAGE_DEBUG & DEBUG_VERBOSE_LRU)
@@ -799,6 +800,7 @@ int savageUploadTexImages( savageContextPtr imesa, savageTextureObjectPtr t )
for (i = t->min_level ; i <= t->max_level ; i++)
if (t->dirty_images & (1<<i))
savageUploadTexLevel( t, i );
+ UNLOCK_HARDWARE(imesa);
}