mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
radeon: fix stupidity in cs space check code.
This was already correct in the GEM code
This commit is contained in:
parent
bc5c40d7d9
commit
69fd0cbaa2
1 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue