diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2006-10-05 11:35:57 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2006-10-05 11:35:57 +0000 |
commit | 68da677ae29c0c38ca1bce1ce78087b9c7cf0e1a (patch) | |
tree | f33ecf4a73064473b54c325bd7828998864caf16 /src/mesa/drivers/dri/i965/intel_context.c | |
parent | 1eca12a7d9f26ab5b68c5ba665c81c8aadec34fb (diff) |
Accelerate glBitmap with a color expand blit. Nice speedup for demos
like 'fire' that display a help message or fps number this way.
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_context.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c index 5f19137d58..d65de633fd 100644 --- a/src/mesa/drivers/dri/i965/intel_context.c +++ b/src/mesa/drivers/dri/i965/intel_context.c @@ -258,7 +258,6 @@ void intelInitDriverFunctions( struct dd_function_table *functions ) /* Pixel path fallbacks. */ functions->Accum = _swrast_Accum; - functions->Bitmap = _swrast_Bitmap; functions->ReadPixels = _swrast_ReadPixels; functions->DrawPixels = _swrast_DrawPixels; @@ -266,6 +265,12 @@ void intelInitDriverFunctions( struct dd_function_table *functions ) * manager: */ functions->CopyPixels = intelCopyPixels; + functions->Bitmap = intelBitmap; + + if (getenv("INTEL_NO_BLIT")) { + functions->Bitmap = _swrast_Bitmap; + functions->CopyPixels = _swrast_CopyPixels; + } intelInitTextureFuncs( functions ); intelInitStateFuncs( functions ); |