From c51eb3ec401e78dd14ccd95304599909045b17b6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 14 Feb 2008 16:14:00 -0800 Subject: [intel] Bug #13636: Allow recursive buffer mapping in bufmgr_ttm. --- src/mesa/drivers/dri/common/dri_bufmgr_fake.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/common') diff --git a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c index 7212ee84ab..8f67798a08 100644 --- a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c +++ b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c @@ -712,7 +712,10 @@ dri_fake_bo_map(dri_bo *bo, GLboolean write_enable) if (bo_fake->is_static) return 0; - /* Allow recursive mapping, which is used internally in relocation. */ + /* Allow recursive mapping. Mesa may recursively map buffers with + * nested display loops, and it is used internally in bufmgr_fake + * for relocation. + */ if (bo_fake->map_count++ != 0) return 0; -- cgit v1.2.3