Home | History | Annotate | Download | only in vmwgfx

Lines Matching defs:view

388  * vmw_view_res_val_add - Add a view and the surface it's pointing to to the
392 * @view: Pointer to the view resource.
397 struct vmw_resource *view)
402 * First add the resource the view is pointing to, otherwise it may be
403 * swapped out when the view is validated.
405 ret = vmw_execbuf_res_noctx_val_add(sw_context, vmw_view_srf(view),
406 vmw_view_dirtying(view));
410 return vmw_execbuf_res_noctx_val_add(sw_context, view,
415 * vmw_view_id_val_add - Look up a view and add it and the surface it's pointing
419 * @view_type: The view type to look up.
420 * @id: view id of the view.
422 * The view is represented by a view id and the DX context it's created on, or
434 struct vmw_resource *view;
440 view = vmw_view_lookup(sw_context->man, view_type, id);
441 if (IS_ERR(view))
442 return view;
444 ret = vmw_view_res_val_add(sw_context, view);
448 return view;
779 * vmw_view_bindings_add - Add an array of view bindings to a context binding
783 * @view_type: View type for the bindings.
786 * @view_ids: Array of view ids to be bound.
787 * @num_views: Number of view ids in @view_ids.
788 * @first_slot: The binding slot to be used for the first view id in @view_ids.
805 struct vmw_resource *view = NULL;
808 view = vmw_view_id_val_add(sw_context, view_type,
810 if (IS_ERR(view)) {
811 VMW_DEBUG_USER("View not found.\n");
812 return PTR_ERR(view);
816 binding.bi.res = view;
2596 * vmw_cmd_dx_view_remove - validate a view remove command and schedule the view
2603 * Check that the view exists, and if it was not created using this command
2616 struct vmw_resource *view;
2623 &sw_context->staged_cmd_res, &view);
2624 if (ret || !view)
2628 * If the view wasn't created during this command batch, it might
2633 return vmw_resource_relocation_add(sw_context, view,