search for: unref_bo

Displaying 2 results from an estimated 2 matches for "unref_bo".

Did you mean: unref_bos
2015 Mar 29
1
[PATCH] nouveau: synchronize "scratch runout" destruction with the command stream
...u_buffer.c +++ b/src/gallium/drivers/nouveau/nouveau_buffer.c @@ -846,19 +846,42 @@ nouveau_scratch_bo_alloc(struct nouveau_context *nv, struct nouveau_bo **pbo, 4096, size, NULL, pbo); } +struct bos +{ + unsigned nr; + struct nouveau_bo **arr; +}; + +static void +unref_bos(void *d) +{ + struct bos *b = d; + int i; + + for (i = 0; i < b->nr; ++i) + nouveau_bo_ref(NULL, &b->arr[i]); + + FREE(b->arr); + FREE(b); +} + void nouveau_scratch_runout_release(struct nouveau_context *nv) { if (!nv->scratch.nr_runout) return; -...
2018 Jan 15
2
[PATCH] fix drm-get-put.cocci warnings
...urn -ENOENT; ret = nouveau_gem_info(file_priv, gem, req); - drm_gem_object_unreference_unlocked(gem); + drm_gem_object_put_unlocked(gem); return ret; } @@ -1153,7 +1153,7 @@ out: return err; unref: - drm_gem_object_unreference(&nvbo->gem); + drm_gem_object_put(&nvbo->gem); unref_bo: nouveau_bo_ref(NULL, &nvbo); free_sgt: