From 5a73f066ba149816cc0fc2de4b97ec4714cf8ebc Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Tue, 28 Jul 2009 08:12:21 +1000 Subject: nouveau: don't overwrite user-specified bo size needlessly --- libdrm/nouveau/nouveau_bo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libdrm/nouveau') diff --git a/libdrm/nouveau/nouveau_bo.c b/libdrm/nouveau/nouveau_bo.c index 05e5a2ed..520d5d73 100644 --- a/libdrm/nouveau/nouveau_bo.c +++ b/libdrm/nouveau/nouveau_bo.c @@ -49,7 +49,7 @@ nouveau_bo_info(struct nouveau_bo_priv *nvbo, struct drm_nouveau_gem_info *arg) { nvbo->handle = nvbo->base.handle = arg->handle; nvbo->domain = arg->domain; - nvbo->size = nvbo->base.size = arg->size; + nvbo->size = arg->size; nvbo->offset = arg->offset; nvbo->map_handle = arg->map_handle; nvbo->base.tile_mode = arg->tile_mode; @@ -268,6 +268,7 @@ nouveau_bo_wrap(struct nouveau_device *dev, uint32_t handle, } nouveau_bo_info(nvbo, &req); + nvbo->base.size = nvbo->size; return 0; } -- cgit v1.2.3