summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-02-14 16:14:00 -0800
committerEric Anholt <eric@anholt.net>2008-02-15 11:51:32 -0800
commitc51eb3ec401e78dd14ccd95304599909045b17b6 (patch)
tree5f0def3c5cfc35c75fd9ef591a1d96f394935b07 /src/mesa/drivers/dri/common
parent39bcbe0921e8a31b55ebee8726d2091fc5e0dd22 (diff)
[intel] Bug #13636: Allow recursive buffer mapping in bufmgr_ttm.
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r--src/mesa/drivers/dri/common/dri_bufmgr_fake.c5
1 files changed, 4 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 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;