radeon space: realign with drm space check code
authorDave Airlie <airlied@redhat.com>
Sat, 15 Aug 2009 11:34:17 +0000 (21:34 +1000)
committerDave Airlie <airlied@redhat.com>
Sat, 15 Aug 2009 11:34:17 +0000 (21:34 +1000)
src/mesa/drivers/dri/radeon/radeon_cs_space_drm.c

index 5a8df7bb8cd7e12a572b93bccbea33bd7c602ce0..89cbbb5a6b982fafa60d91c7fedc7d83c87ddc73 100644 (file)
@@ -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;
            }