diff options
author | Ben Skeggs <skeggsb@beleth.keine.ath.cx> | 2009-07-28 08:12:21 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2009-07-28 20:59:05 +1000 |
commit | 5a73f066ba149816cc0fc2de4b97ec4714cf8ebc (patch) | |
tree | 9da1098415a5fe06e79b25124046edfccee63414 /libdrm/nouveau | |
parent | 0bf8fb3bce6b4d9b4820d38d37e1ac1e73e22d23 (diff) |
nouveau: don't overwrite user-specified bo size needlessly
Diffstat (limited to 'libdrm/nouveau')
-rw-r--r-- | libdrm/nouveau/nouveau_bo.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |