summaryrefslogtreecommitdiff
path: root/src/evergreen_exa.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2012-02-03 12:21:59 +0100
committerMichel Dänzer <michel@daenzer.net>2012-02-08 15:04:14 +0100
commite20284409937d784847339b5d466a95012d85940 (patch)
treec2fe72f2d55ae24d20370c7d7b964935282eadb6 /src/evergreen_exa.c
parent5a7f64c5170ca424c9dca739662018e30df13413 (diff)
EXA/r6xx+: Only set write domain or read domains, not both. (Bug #43893)
Avoids an accounting bug in libdrm_radeon 2.4.31 or older. See https://bugs.freedesktop.org/show_bug.cgi?id=43893 Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/evergreen_exa.c')
-rw-r--r--src/evergreen_exa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evergreen_exa.c b/src/evergreen_exa.c
index ac0b5bb0..97810693 100644
--- a/src/evergreen_exa.c
+++ b/src/evergreen_exa.c
@@ -515,7 +515,7 @@ EVERGREENPrepareCopy(PixmapPtr pSrc, PixmapPtr pDst,
RADEON_FALLBACK(("temp copy surface alloc failed\n"));
radeon_cs_space_add_persistent_bo(info->cs, accel_state->copy_area_bo,
- RADEON_GEM_DOMAIN_VRAM, RADEON_GEM_DOMAIN_VRAM);
+ 0, RADEON_GEM_DOMAIN_VRAM);
if (radeon_cs_space_check(info->cs)) {
radeon_bo_unref(accel_state->copy_area_bo);
accel_state->copy_area_bo = NULL;