r600g: fix bo size when creating bo from handle
authorJerome Glisse <jglisse@redhat.com>
Fri, 10 Dec 2010 16:17:27 +0000 (11:17 -0500)
committerJerome Glisse <jglisse@redhat.com>
Fri, 10 Dec 2010 16:17:27 +0000 (11:17 -0500)
Spoted by Alex Diomin

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/winsys/r600/drm/r600_bo.c

index 137402c70643ea6cc83de16a19fb7127b758c057..6a3737f0a4a8c6030784a5de0f58d76478622d3a 100644 (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);