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

Author: Chris Wilson <ch...@chris-wilson.co.uk>
Date:   Mon Feb 21 20:56:06 2011 +0000

intel: Fix insufficient integer width for upload buffer offset

I was being overly miserly and gave the offset of the buffer into the bo
insufficient bits, distracted by the adjacency of the buffer[4096].

Ref: https://bugs.freedesktop.org/show_bug.cgi?id=34541
Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk>

---

 src/mesa/drivers/dri/intel/intel_context.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.h 
b/src/mesa/drivers/dri/intel/intel_context.h
index 1ab38b1..772b2fb 100644
--- a/src/mesa/drivers/dri/intel/intel_context.h
+++ b/src/mesa/drivers/dri/intel/intel_context.h
@@ -201,8 +201,8 @@ struct intel_context
    struct {
       drm_intel_bo *bo;
       GLuint offset;
-      uint16_t buffer_len;
-      uint16_t buffer_offset;
+      uint32_t buffer_len;
+      uint32_t buffer_offset;
       char buffer[4096];
    } upload;
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to