Mesa (gallium-0.2): i915: fallback on transfer mode
Alan Hourihane
alanh at kemper.freedesktop.org
Fri Jan 16 16:45:07 UTC 2009
Module: Mesa
Branch: gallium-0.2
Commit: 66a4f5cf9a74f906f802eeeae56de79fc640a2c9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=66a4f5cf9a74f906f802eeeae56de79fc640a2c9
Author: Xiang, Haihao <haihao.xiang at intel.com>
Date: Fri Jan 16 16:06:33 2009 +0800
i915: fallback on transfer mode
---
src/mesa/drivers/dri/intel/intel_pixel_copy.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_pixel_copy.c b/src/mesa/drivers/dri/intel/intel_pixel_copy.c
index 447c649..7c7aa60 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_copy.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_copy.c
@@ -119,6 +119,12 @@ do_texture_copypixels(GLcontext * ctx,
if (!src || !dst || type != GL_COLOR)
return GL_FALSE;
+ if (ctx->_ImageTransferState) {
+ if (INTEL_DEBUG & DEBUG_PIXEL)
+ fprintf(stderr, "%s: check_color failed\n", __FUNCTION__);
+ return GL_FALSE;
+ }
+
/* Can't handle overlapping regions. Don't have sufficient control
* over rasterization to pull it off in-place. Punt on these for
* now.
More information about the mesa-commit
mailing list