summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-06-24 09:41:58 -0700
committerEric Anholt <eric@anholt.net>2008-06-24 10:24:32 -0700
commit98fa0aec366ac41065698fd9bf76731b7d08f1f7 (patch)
tree35cbf55b1cc21a14eef62588c7082b5f0e382ac9 /src/mesa/drivers/dri
parentfe3b62b5b1a6ed5f81fa0b849f3a81a8cf43c810 (diff)
i915: Allow accelerated pixel ops to be disabled with INTEL_NO_BLIT.
This matches 965.
Diffstat (limited to 'src/mesa/drivers/dri')
-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 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;
+ }
}