diff options
author | Eric Anholt <[email protected]> | 2003-12-09 00:00:40 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2003-12-09 00:00:40 +0000 |
commit | e8bec8832b50b8c2310e40951bea8bd78f89715c (patch) | |
tree | d6d4559ce999337a1e0a4e63bbfedc1457ba0aa4 /src/mesa/drivers/dri/sis/sis_context.c | |
parent | 73c3c397e4c07b48dcc845add9d80df025e1f0cd (diff) |
Remove usleeps from sis driver. We probably aren't doing anyone a service
sleeping with the lock held. Also, rename cEngineState to engineState since
it isn't a char any more.
Diffstat (limited to 'src/mesa/drivers/dri/sis/sis_context.c')
-rw-r--r-- | src/mesa/drivers/dri/sis/sis_context.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/sis/sis_context.c b/src/mesa/drivers/dri/sis/sis_context.c index 0830e5676f1..6aa61944086 100644 --- a/src/mesa/drivers/dri/sis/sis_context.c +++ b/src/mesa/drivers/dri/sis/sis_context.c @@ -84,27 +84,25 @@ static const char * const card_extensions[] = void WaitEngIdle (sisContextPtr smesa) { - GLuint cEngineState; + GLuint engineState; do { - cEngineState = MMIO_READ(REG_CommandQueue); - } while ((cEngineState & SiS_EngIdle) != SiS_EngIdle); + engineState = MMIO_READ(REG_CommandQueue); + } while ((engineState & SiS_EngIdle) != SiS_EngIdle); } void Wait2DEngIdle (sisContextPtr smesa) { - GLuint cEngineState; + GLuint engineState; do { - cEngineState = MMIO_READ(REG_CommandQueue); - } while ((cEngineState & SiS_EngIdle2d) != SiS_EngIdle2d); + engineState = MMIO_READ(REG_CommandQueue); + } while ((engineState & SiS_EngIdle2d) != SiS_EngIdle2d); } /* To be called from mWait3DCmdQueue. Separate function for profiling * purposes, and speed doesn't matter because we're spinning anyway. - * This function should use usleeps to release cpu probably, but I have yet - * to see it get called. */ void WaitingFor3dIdle(sisContextPtr smesa, int wLen) |