nouveau: 0xdeadc0de

This commit is contained in:
Ben Skeggs 2008-01-30 15:34:02 +11:00
parent 2b47b5b413
commit a5273f0fac
2 changed files with 0 additions and 26 deletions

View 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)
{

View 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 **);