OSDN Git Service

intel: Fix insufficient integer width for upload buffer offset
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Feb 2011 20:56:06 +0000 (20:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Feb 2011 20:58:09 +0000 (20:58 +0000)
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 <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/intel/intel_context.h

index 1ab38b1..772b2fb 100644 (file)
@@ -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;