i915: Allow accelerated pixel ops to be disabled with INTEL_NO_BLIT.
authorEric Anholt <eric@anholt.net>
Tue, 24 Jun 2008 16:41:58 +0000 (09:41 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 24 Jun 2008 17:24:32 +0000 (10:24 -0700)
This matches 965.

src/mesa/drivers/dri/intel/intel_pixel.c

index 9018e3daef497714487c1136732cdb477e8c98ec..cc6b9bb0eae3e193961a132f949aead1c634e0fe 100644 (file)
@@ -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;
+   }
 }