aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_pixel.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2008-06-24 11:34:42 -0700
committerEric Anholt <[email protected]>2008-06-24 11:34:42 -0700
commitf23adc504d8202bbcc78121567a61c0b24819422 (patch)
treee0aeb3d3a3dd4089922df3806ecbca1527a5ce3a /src/mesa/drivers/dri/intel/intel_pixel.c
parent90d33edf37d12495fcfb4876d1048f3ed5df2b9b (diff)
intel: Merge check_blit_fragment_ops between i915/i965.
Both had some useful bits for the other.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_pixel.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_pixel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_pixel.c b/src/mesa/drivers/dri/intel/intel_pixel.c
index c0333969d0c..72eb823bc47 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel.c
@@ -99,6 +99,11 @@ intel_check_blit_fragment_ops(GLcontext * ctx)
return GL_FALSE;
}
+ if (ctx->RenderMode != GL_RENDER) {
+ DBG("fallback due to render mode\n");
+ return GL_FALSE;
+ }
+
return GL_TRUE;
}
@@ -157,7 +162,9 @@ intelInitPixelFuncs(struct dd_function_table *functions)
if (!getenv("INTEL_NO_BLIT")) {
functions->Bitmap = intelBitmap;
functions->CopyPixels = intelCopyPixels;
+#ifdef I915
functions->ReadPixels = intelReadPixels;
functions->DrawPixels = intelDrawPixels;
+#endif
}
}