diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-07-03 12:44:19 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2009-07-03 12:44:19 +0200 |
commit | 060c7f2321f72503c14f9f3f7bb27d59d8a90224 (patch) | |
tree | d4bd91d92c622e816fac649760054c100b548493 | |
parent | 6b2461fec905b7dc25ad051d602b440503f544ea (diff) |
radeon: Wait for BO idle if necessary before mapping it.
Fixes fighting between GPU and software rendering with TTM.
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_span.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_span.c b/src/mesa/drivers/dri/radeon/radeon_span.c index e28f28662b..4f5480b170 100644 --- a/src/mesa/drivers/dri/radeon/radeon_span.c +++ b/src/mesa/drivers/dri/radeon/radeon_span.c @@ -443,6 +443,8 @@ static void map_unmap_rb(struct gl_renderbuffer *rb, int flag) return; if (flag) { + if (rrb->bo->bom->funcs->bo_wait) + radeon_bo_wait(rrb->bo); r = radeon_bo_map(rrb->bo, 1); if (r) { fprintf(stderr, "(%s) error(%d) mapping buffer.\n", |