diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-23 18:26:40 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-23 18:26:40 +0000 |
commit | 3deaf2174544f25df812af886c424383ba1dafdf (patch) | |
tree | c586a0b616b26523befebdf79f8637d8a705785e /src/mesa/drivers/dri/unichrome/via_context.c | |
parent | 9876730f7ac0497dcb6342997006be752536b0e3 (diff) |
Remove the VIA_PERFORMANCE code. A step towards moving the driver
back to using the shared template files.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_context.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_context.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c index 7c4cec8a2d..d1cf0ada8b 100644 --- a/src/mesa/drivers/dri/unichrome/via_context.c +++ b/src/mesa/drivers/dri/unichrome/via_context.c @@ -69,12 +69,7 @@ GLuint VIA_DEBUG = 0; #endif #define DMA_SIZE 2 -GLuint VIA_PERFORMANCE = 0; -#ifdef PERFORMANCE_MEASURE -GLuint busy = 0; -GLuint idle = 0; -hash_element hash_table[HASH_TABLE_SIZE][HASH_TABLE_DEPTH]; -#endif + /*=* John Sheng [2003.5.31] agp tex *=*/ static GLboolean @@ -557,22 +552,6 @@ viaCreateContext(const __GLcontextModes *mesaVis, FALLBACK(vmesa, VIA_FALLBACK_USER_DISABLE, 1); -#ifdef PERFORMANCE_MEASURE - if (getenv("VIA_PERFORMANCE")) - VIA_PERFORMANCE = 1; - else - VIA_PERFORMANCE = 0; - - { - int i, j; - for (i = 0; i < HASH_TABLE_SIZE; i++) { - for (j = 0; j < HASH_TABLE_DEPTH; j ++) { - hash_table[i][j].count = 0; - sprintf(hash_table[i][j].func, "%s", "NULL"); - } - } - } -#endif /* I don't understand why this isn't working: */ @@ -639,12 +618,6 @@ viaDestroyContext(__DRIcontextPrivate *driContextPriv) FREE(vmesa); } - P_M_R; - -#ifdef PERFORMANCE_MEASURE - if (VIA_PERFORMANCE) fprintf(stderr, "idle = %d\n", idle); - if (VIA_PERFORMANCE) fprintf(stderr, "busy = %d\n", busy); -#endif if (VIA_DEBUG) fprintf(stderr, "%s - out\n", __FUNCTION__); } |