summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2010-12-10 11:17:27 -0500
committerJerome Glisse <jglisse@redhat.com>2011-01-06 15:54:47 -0500
commite7b12f2a0e88e754c68faf7c0e034f7bfc0775f1 (patch)
tree16c269c59698a9547b3cba475267a1f87300ad98
parentb11623a5df731cc49f97649a4bb86c0d3b097f93 (diff)
r600g: fix bo size when creating bo from handle
Spoted by Alex Diomin Signed-off-by: Jerome Glisse <jglisse@redhat.com>
-rw-r--r--src/gallium/winsys/r600/drm/r600_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_bo.c b/src/gallium/winsys/r600/drm/r600_bo.c
index 137402c7064..6a3737f0a4a 100644
--- a/src/gallium/winsys/r600/drm/r600_bo.c
+++ b/src/gallium/winsys/r600/drm/r600_bo.c
@@ -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);