r600g: fix bo size when creating bo from handle

Spoted by Alex Diomin

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
This commit is contained in:
Jerome Glisse 2010-12-10 11:17:27 -05:00
parent d5810efca6
commit b22c8e8bbc

View file

@ -85,7 +85,7 @@ struct r600_bo *r600_bo_handle(struct radeon *radeon,
free(bo);
return NULL;
}
bo->size = bo->size;
bo->size = rbo->size;
bo->domains = (RADEON_GEM_DOMAIN_CPU |
RADEON_GEM_DOMAIN_GTT |
RADEON_GEM_DOMAIN_VRAM);