diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2012-02-03 12:21:59 +0100 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2012-02-08 15:04:14 +0100 |
commit | e20284409937d784847339b5d466a95012d85940 (patch) | |
tree | c2fe72f2d55ae24d20370c7d7b964935282eadb6 /src/r600_exa.c | |
parent | 5a7f64c5170ca424c9dca739662018e30df13413 (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/r600_exa.c')
-rw-r--r-- | src/r600_exa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/r600_exa.c b/src/r600_exa.c index 5306afd7..8a538964 100644 --- a/src/r600_exa.c +++ b/src/r600_exa.c @@ -646,7 +646,7 @@ R600PrepareCopy(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; |