diff options
author | Dave Airlie <airlied@redhat.com> | 2009-08-15 21:32:35 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-15 21:32:35 +1000 |
commit | 1d465178fbab77a9c0e830ea8c47bf61735def71 (patch) | |
tree | 993947d865435a50e21c3b592bea33234f2de085 /libdrm | |
parent | d74c67fb13d8c3e8c2e5968d827285d147a5dfc0 (diff) |
radeon: fix GTT writing space check
Noticed by vehemens on irc.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'libdrm')
-rw-r--r-- | libdrm/radeon/radeon_cs_space.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm/radeon/radeon_cs_space.c b/libdrm/radeon/radeon_cs_space.c index 5d0fe5c1..4c1ef93e 100644 --- a/libdrm/radeon/radeon_cs_space.c +++ b/libdrm/radeon/radeon_cs_space.c @@ -82,7 +82,7 @@ static inline int radeon_cs_setup_bo(struct radeon_cs_space_check *sc, struct ra if (write_domain == RADEON_GEM_DOMAIN_VRAM) { sizes->op_read -= bo->size; sizes->op_vram_write += bo->size; - } else if (write_domain == RADEON_GEM_DOMAIN_VRAM) { + } else if (write_domain == RADEON_GEM_DOMAIN_GTT) { sizes->op_read -= bo->size; sizes->op_gart_write += bo->size; } |