aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2008-06-24 09:41:58 -0700
committerEric Anholt <[email protected]>2008-06-24 10:24:32 -0700
commit98fa0aec366ac41065698fd9bf76731b7d08f1f7 (patch)
tree35cbf55b1cc21a14eef62588c7082b5f0e382ac9 /src/mesa
parentfe3b62b5b1a6ed5f81fa0b849f3a81a8cf43c810 (diff)
i915: Allow accelerated pixel ops to be disabled with INTEL_NO_BLIT.
This matches 965.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_pixel.c10
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 9018e3daef4..cc6b9bb0eae 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;
+ }
}