From b22c8e8bbcdff7933b0354197c101738c99ea7d0 Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Fri, 10 Dec 2010 11:17:27 -0500 Subject: [PATCH] r600g: fix bo size when creating bo from handle Spoted by Alex Diomin Signed-off-by: Jerome Glisse --- src/gallium/winsys/r600/drm/r600_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2