From: Eric Anholt Date: Tue, 24 Jun 2008 16:41:58 +0000 (-0700) Subject: i915: Allow accelerated pixel ops to be disabled with INTEL_NO_BLIT. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98fa0aec366ac41065698fd9bf76731b7d08f1f7;p=mesa.git i915: Allow accelerated pixel ops to be disabled with INTEL_NO_BLIT. This matches 965. --- 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; + } }