diff options
author | Felix Kuehling <[email protected]> | 2004-03-25 01:16:27 +0000 |
---|---|---|
committer | Felix Kuehling <[email protected]> | 2004-03-25 01:16:27 +0000 |
commit | 6e963e965cd00d69de0d868882c2c5322b39f578 (patch) | |
tree | 071a2deeeaf18f90473257ef4c8d63977f30c9f7 /src/mesa/drivers/dri/savage/savagetex.c | |
parent | adf33a1c6f087075b65f0fbc756839481a38e10d (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.c | 2 |
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); } |