[PATCH 4/4] drm/virtio: move virtio_gpu_mem_entry initialization to new function
Gerd Hoffmann
kraxel at redhat.com
Thu Feb 6 08:55:40 UTC 2020
Hi,
> > virtio_gpu_cmd_resource_attach_backing(vgdev, obj->hw_res_handle,
> > - ents, nents,
> > + obj->ents, obj->nents,
> > fence);
> > + obj->ents = NULL;
> > + obj->nents = 0;
> Hm, if the entries are temporary, can we allocate and initialize them
> in this function?
Well, the plan for CREATE_RESOURCE_BLOB is to use obj->ents too ...
cheers,
Gerd
More information about the dri-devel
mailing list