drm/nouveau/disp/nv50-: pass nvkm_memory objects for channel push buffers

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
此提交包含在:
Ben Skeggs
2018-05-08 20:39:46 +10:00
父節點 a9c44a88ca
當前提交 f5650478ab
共有 8 個檔案被更改,包括 55 行新增44 行删除

查看文件

@@ -24,6 +24,19 @@
#include <nvif/if000a.h>
int
nvif_mem_init_map(struct nvif_mmu *mmu, u8 type, u64 size, struct nvif_mem *mem)
{
int ret = nvif_mem_init(mmu, mmu->mem, NVIF_MEM_MAPPABLE | type, 0,
size, NULL, 0, mem);
if (ret == 0) {
ret = nvif_object_map(&mem->object, NULL, 0);
if (ret)
nvif_mem_fini(mem);
}
return ret;
}
void
nvif_mem_fini(struct nvif_mem *mem)
{