summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 230ec7d)
raw | patch | inline | side by side (parent: 230ec7d)
author | Michel Dänzer <michel.daenzer@amd.com> | |
Wed, 8 Feb 2012 09:49:08 +0000 (10:49 +0100) | ||
committer | Michel Dänzer <michel@daenzer.net> | |
Wed, 8 Feb 2012 09:50:55 +0000 (10:50 +0100) |
Only account for the write domain in that case.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=43893 .
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=43893 .
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
radeon/radeon_cs_space.c | patch | blob | history |
index 208e1bbf9ba3d6a6cd07274914bc605373ad8f64..be047a7bf7f39af71fbc64998a643a259db5e1df 100644 (file)
--- a/radeon/radeon_cs_space.c
+++ b/radeon/radeon_cs_space.c
@@ -65,13 +65,16 @@ static inline int radeon_cs_setup_bo(struct radeon_cs_space_check *sc, struct ra
}
if (bo->space_accounted == 0) {
- if (write_domain == RADEON_GEM_DOMAIN_VRAM)
- sizes->op_vram_write += bo->size;
- else if (write_domain == RADEON_GEM_DOMAIN_GTT)
- sizes->op_gart_write += bo->size;
- else
+ if (write_domain) {
+ if (write_domain == RADEON_GEM_DOMAIN_VRAM)
+ sizes->op_vram_write += bo->size;
+ else if (write_domain == RADEON_GEM_DOMAIN_GTT)
+ sizes->op_gart_write += bo->size;
+ sc->new_accounted = write_domain;
+ } else {
sizes->op_read += bo->size;
- sc->new_accounted = (read_domains << 16) | write_domain;
+ sc->new_accounted = read_domains << 16;
+ }
} else {
uint16_t old_read, old_write;