Mesa (master): intel: GL_FALSE on a BO if it won' t be modified when mapping this BO. (thanks Eric).

Haihao Xiang haihao at kemper.freedesktop.org
Sat Oct 25 22:39:56 UTC 2008


Module: Mesa
Branch: master
Commit: 2a877411dbe35abdd8c15fb4821d9232619d89cc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a877411dbe35abdd8c15fb4821d9232619d89cc

Author: Xiang, Haihao <haihao.xiang at intel.com>
Date:   Sun Oct 26 06:31:33 2008 +0800

intel: GL_FALSE on a BO if it won't be modified when mapping this BO. (thanks Eric).

---

 src/mesa/drivers/dri/intel/intel_blit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_blit.c b/src/mesa/drivers/dri/intel/intel_blit.c
index 081d1dd..3c1f7f6 100644
--- a/src/mesa/drivers/dri/intel/intel_blit.c
+++ b/src/mesa/drivers/dri/intel/intel_blit.c
@@ -299,7 +299,7 @@ intelEmitCopyBlit(struct intel_context *intel,
        }
 
        dri_bo_map(dst_buffer, GL_TRUE);
-       dri_bo_map(src_buffer, GL_TRUE);
+       dri_bo_map(src_buffer, GL_FALSE);
        _mesa_copy_rect((GLubyte *)dst_buffer->virtual + dst_offset,
                        cpp,
                        dst_pitch,




More information about the mesa-commit mailing list