diff options
author | Dave Airlie <[email protected]> | 2009-06-25 12:13:17 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-06-25 12:13:17 +1000 |
commit | 69fd0cbaa2ac259101f647ad0934b626f382674f (patch) | |
tree | d90c5ef64d858619f577fe539782bff31cebe6bf | |
parent | bc5c40d7d99a51f5b6080bf85080e4984e528dfd (diff) |
radeon: fix stupidity in cs space check code.
This was already correct in the GEM code
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_cs_legacy.c | 8 |
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 e4ee2b99151..ac94789417e 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) |