mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 20:00:24 +01:00
nouveau: 0xdeadc0de
This commit is contained in:
parent
2b47b5b413
commit
a5273f0fac
2 changed files with 0 additions and 26 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 **);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue