summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-06-25 12:13:17 +1000
committerDave Airlie <airlied@redhat.com>2009-06-25 12:13:17 +1000
commit69fd0cbaa2ac259101f647ad0934b626f382674f (patch)
treed90c5ef64d858619f577fe539782bff31cebe6bf /src/mesa
parentbc5c40d7d99a51f5b6080bf85080e4984e528dfd (diff)
radeon: fix stupidity in cs space check code.
This was already correct in the GEM code
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_cs_legacy.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c b/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
index e4ee2b9915..ac94789417 100644
--- a/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
+++ b/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
@@ -391,11 +391,15 @@ static int cs_check_space(struct radeon_cs *cs, struct radeon_cs_space_check *bo
continue;
/* already accounted this bo */
- if (write_domain && (write_domain == bo->space_accounted))
+ if (write_domain && (write_domain == bo->space_accounted)) {
+ bos[i].new_accounted = bo->space_accounted;
continue;
+ }
- if (read_domains && ((read_domains << 16) == bo->space_accounted))
+ if (read_domains && ((read_domains << 16) == bo->space_accounted)) {
+ bos[i].new_accounted = bo->space_accounted;
continue;
+ }
if (bo->space_accounted == 0) {
if (write_domain == RADEON_GEM_DOMAIN_VRAM)