diff options
author | Eric Anholt <[email protected]> | 2007-05-18 11:55:00 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2007-05-18 11:55:00 -0700 |
commit | bb1bb88bab809ce47fc5669ceb294b83ed164975 (patch) | |
tree | 1703bf14c30f51669df27087803ec917e2320a74 /src/mesa/drivers | |
parent | 4cf2cc0d18df67d1d550b777c8db2e088f1c4188 (diff) |
Fix some use-before-initialize in bufmgr_fake.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_bufmgr_fake.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c index 2519808851e..0ef3199d5f3 100644 --- a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c +++ b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c @@ -846,6 +846,7 @@ dri_bufmgr_fake_init(unsigned long low_offset, void *low_virtual, make_empty_list(&bufmgr_fake->referenced); make_empty_list(&bufmgr_fake->fenced); make_empty_list(&bufmgr_fake->on_hardware); + make_empty_list(&bufmgr_fake->lru); bufmgr_fake->low_offset = low_offset; bufmgr_fake->virtual = low_virtual; @@ -867,5 +868,9 @@ dri_bufmgr_fake_init(unsigned long low_offset, void *low_virtual, bufmgr_fake->bufmgr.fence_reference = dri_fake_fence_reference; bufmgr_fake->bufmgr.fence_unreference = dri_fake_fence_unreference; + bufmgr_fake->fence_emit = fence_emit; + bufmgr_fake->fence_wait = fence_wait; + bufmgr_fake->driver_priv = driver_priv; + return &bufmgr_fake->bufmgr; } |