summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-03-18 22:12:34 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-03-18 22:12:34 +0000
commit20ea09cc8918cb5c158471eaa9a28b373a5774dc (patch)
treefa254bdb34f9b5da43e1eb4008eaed7987a67e6d
parentb151abdd6c7d353bac2a34cd792ab0bfad552f4e (diff)
fix packet size calculation
-rw-r--r--src/mesa/drivers/dri/i915tex/i915_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915tex/i915_cache.c b/src/mesa/drivers/dri/i915tex/i915_cache.c
index 4bd64ea0ca..574e96a216 100644
--- a/src/mesa/drivers/dri/i915tex/i915_cache.c
+++ b/src/mesa/drivers/dri/i915tex/i915_cache.c
@@ -198,7 +198,7 @@ static GLuint upload_cache( struct i915_cache *cache,
static GLuint packet_size( const struct i915_cache_packet *packet )
{
return ((const char *)(packet->reloc + packet->nr_relocs) -
- (const char *)packet);
+ (const char *)(packet->dword));
}