summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2008-06-13 13:48:17 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2008-06-13 13:53:46 +0800
commit82a0e82232d61a75fee39d50333016d78938450f (patch)
tree4eab0b549bbd0d5c813bdc61e320400ef703324e
parent03447de338158cca962880fd04d7d3ecf4bd9c5b (diff)
i965: fix intel_batchbuffer_space. (bug#14709)
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.h b/src/mesa/drivers/dri/i965/intel_batchbuffer.h
index 25e0a65e99f..b7947722868 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.h
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.h
@@ -84,7 +84,7 @@ void intel_batchbuffer_release_space(struct intel_batchbuffer *batch,
static inline GLuint
intel_batchbuffer_space( struct intel_batchbuffer *batch )
{
- return (BATCH_SZ - BATCH_RESERVED) - (batch->ptr - (batch->map + batch->offset));
+ return (BATCH_SZ - BATCH_RESERVED) - (batch->ptr - batch->map);
}