diff options
author | Eric Anholt <[email protected]> | 2007-05-18 12:57:34 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2007-05-18 12:57:34 -0700 |
commit | 425d0c6305f7781788077452ae9e2de595b0961d (patch) | |
tree | d4714ad1c883c4012ef43ac8f5d57f1c86e42192 /src/mesa | |
parent | b0529dcc7bf6aa8330da19d98daa0abaa932cc97 (diff) |
Fix double-counting of low_offset in block->virtual.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_bufmgr_fake.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c index 191e16af616..1820da5b445 100644 --- a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c +++ b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c @@ -214,7 +214,8 @@ alloc_block(dri_bo *bo) */ insert_at_tail(&bufmgr_fake->lru, block); - block->virtual = bufmgr_fake->virtual + block->mem->ofs; + block->virtual = bufmgr_fake->virtual + + block->mem->ofs - bufmgr_fake->low_offset; block->bo = bo; bo_fake->block = block; |