nouveau: 0xdeadc0de
authorBen Skeggs <skeggsb@gmail.com>
Wed, 30 Jan 2008 04:34:02 +0000 (15:34 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Fri, 15 Feb 2008 02:50:25 +0000 (13:50 +1100)
src/mesa/drivers/dri/nouveau_winsys/nouveau_bo.c
src/mesa/drivers/dri/nouveau_winsys/nouveau_drmif.h

index 288674f..4c23584 100644 (file)
@@ -246,29 +246,6 @@ nouveau_bo_ref(struct nouveau_device *dev, uint64_t handle,
        return 0;
 }
 
-int
-nouveau_bo_resize(struct nouveau_bo *bo, int size)
-{
-       struct nouveau_bo_priv *nvbo = nouveau_bo(bo);
-       int ret;
-
-       if (!nvbo || nvbo->user)
-               return -EINVAL;
-
-       if (nvbo->sysmem) {
-               nvbo->sysmem = realloc(nvbo->sysmem, size);
-               if (!nvbo->sysmem)
-                       return -ENOMEM;
-       } else {
-               ret = nouveau_bo_realloc_gpu(nvbo, 0, size);
-               if (ret)
-                       return ret;
-       }
-
-       nvbo->base.size = size;
-       return 0;
-}
-
 void
 nouveau_bo_del(struct nouveau_bo **bo)
 {
index 3e88686..7ea4c65 100644 (file)
@@ -274,9 +274,6 @@ nouveau_bo_user(struct nouveau_device *, void *ptr, int size,
 extern int
 nouveau_bo_ref(struct nouveau_device *, uint64_t handle, struct nouveau_bo **);
 
-extern int
-nouveau_bo_resize(struct nouveau_bo *, int size);
-
 extern void
 nouveau_bo_del(struct nouveau_bo **);