Lines Matching refs:pobj
211 struct v3dv_cmd_buffer_private_obj *pobj = in v3dv_cmd_buffer_add_private_obj() local
212 vk_alloc(&cmd_buffer->device->vk.alloc, sizeof(*pobj), 8, in v3dv_cmd_buffer_add_private_obj()
214 if (!pobj) { in v3dv_cmd_buffer_add_private_obj()
219 pobj->obj = obj; in v3dv_cmd_buffer_add_private_obj()
220 pobj->destroy_cb = destroy_cb; in v3dv_cmd_buffer_add_private_obj()
222 list_addtail(&pobj->list_link, &cmd_buffer->private_objs); in v3dv_cmd_buffer_add_private_obj()
227 struct v3dv_cmd_buffer_private_obj *pobj) in cmd_buffer_destroy_private_obj() argument
229 assert(pobj && pobj->obj && pobj->destroy_cb); in cmd_buffer_destroy_private_obj()
230 pobj->destroy_cb(v3dv_device_to_handle(cmd_buffer->device), in cmd_buffer_destroy_private_obj()
231 pobj->obj, in cmd_buffer_destroy_private_obj()
233 list_del(&pobj->list_link); in cmd_buffer_destroy_private_obj()
234 vk_free(&cmd_buffer->device->vk.alloc, pobj); in cmd_buffer_destroy_private_obj()
257 list_for_each_entry_safe(struct v3dv_cmd_buffer_private_obj, pobj, in cmd_buffer_free_resources()
259 cmd_buffer_destroy_private_obj(cmd_buffer, pobj); in cmd_buffer_free_resources()