diff options
author | Eric Anholt <eric@anholt.net> | 2008-06-24 09:41:58 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-06-24 10:24:32 -0700 |
commit | 98fa0aec366ac41065698fd9bf76731b7d08f1f7 (patch) | |
tree | 35cbf55b1cc21a14eef62588c7082b5f0e382ac9 | |
parent | fe3b62b5b1a6ed5f81fa0b849f3a81a8cf43c810 (diff) |
i915: Allow accelerated pixel ops to be disabled with INTEL_NO_BLIT.
This matches 965.
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_pixel.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_pixel.c b/src/mesa/drivers/dri/intel/intel_pixel.c index 9018e3daef..cc6b9bb0ea 100644 --- a/src/mesa/drivers/dri/intel/intel_pixel.c +++ b/src/mesa/drivers/dri/intel/intel_pixel.c @@ -113,8 +113,10 @@ void intelInitPixelFuncs(struct dd_function_table *functions) { functions->Accum = _swrast_Accum; - functions->Bitmap = _swrast_Bitmap; - functions->CopyPixels = intelCopyPixels; - functions->ReadPixels = intelReadPixels; - functions->DrawPixels = intelDrawPixels; + if (!getenv("INTEL_NO_BLIT")) { + functions->Bitmap = _swrast_Bitmap; + functions->CopyPixels = intelCopyPixels; + functions->ReadPixels = intelReadPixels; + functions->DrawPixels = intelDrawPixels; + } } |