Lines Matching defs:view

359  * vmw_view_res_val_add - Add a view and the surface it's pointing to to the
363 * @view: Pointer to the view resource.
368 struct vmw_resource *view)
373 * First add the resource the view is pointing to, otherwise it may be
374 * swapped out when the view is validated.
376 ret = vmw_execbuf_res_val_add(sw_context, vmw_view_srf(view),
377 vmw_view_dirtying(view), vmw_val_add_flag_noctx);
381 return vmw_execbuf_res_val_add(sw_context, view, VMW_RES_DIRTY_NONE,
386 * vmw_view_id_val_add - Look up a view and add it and the surface it's pointing
390 * @view_type: The view type to look up.
391 * @id: view id of the view.
393 * The view is represented by a view id and the DX context it's created on, or
405 struct vmw_resource *view;
411 view = vmw_view_lookup(sw_context->man, view_type, id);
412 if (IS_ERR(view))
413 return view;
415 ret = vmw_view_res_val_add(sw_context, view);
419 return view;
765 * vmw_view_bindings_add - Add an array of view bindings to a context binding
772 * @view_ids: Array of view ids to be bound.
773 * @num_views: Number of view ids in @view_ids.
774 * @first_slot: The binding slot to be used for the first view id in @view_ids.
791 struct vmw_resource *view = NULL;
794 view = vmw_view_id_val_add(sw_context, view_type,
796 if (IS_ERR(view)) {
798 return PTR_ERR(view);
802 binding.bi.res = view;
2632 * vmw_cmd_dx_view_remove - validate a view remove command and schedule the view
2639 * Check that the view exists, and if it was not created using this command
2652 struct vmw_resource *view;
2659 &sw_context->staged_cmd_res, &view);
2660 if (ret || !view)
2664 * If the view wasn't created during this command batch, it might
2669 return vmw_resource_relocation_add(sw_context, view,
2797 struct vmw_resource *view;
2800 view = vmw_view_id_val_add(sw_context, vmw_view_sr,
2802 if (IS_ERR(view))
2803 return PTR_ERR(view);
2806 * Normally the shader-resource view is not gpu-dirtying, but for
2809 * the view points to, gpu-dirty.