From: Eric Anholt Date: Fri, 18 May 2007 19:57:34 +0000 (-0700) Subject: Fix double-counting of low_offset in block->virtual. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=425d0c6305f7781788077452ae9e2de595b0961d;p=mesa.git Fix double-counting of low_offset in block->virtual. --- 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;