Lines Matching defs:view
379 * vmw_view_res_val_add - Add a view and the surface it's pointing to to the
383 * @view: Pointer to the view resource.
388 struct vmw_resource *view)
393 * First add the resource the view is pointing to, otherwise it may be
394 * swapped out when the view is validated.
396 ret = vmw_execbuf_res_noctx_val_add(sw_context, vmw_view_srf(view),
397 vmw_view_dirtying(view));
401 return vmw_execbuf_res_noctx_val_add(sw_context, view,
406 * vmw_view_id_val_add - Look up a view and add it and the surface it's pointing
410 * @view_type: The view type to look up.
411 * @id: view id of the view.
413 * The view is represented by a view id and the DX context it's created on, or
425 struct vmw_resource *view;
431 view = vmw_view_lookup(sw_context->man, view_type, id);
432 if (IS_ERR(view))
433 return view;
435 ret = vmw_view_res_val_add(sw_context, view);
439 return view;
774 * vmw_view_bindings_add - Add an array of view bindings to a context binding
781 * @view_ids: Array of view ids to be bound.
782 * @num_views: Number of view ids in @view_ids.
783 * @first_slot: The binding slot to be used for the first view id in @view_ids.
800 struct vmw_resource *view = NULL;
803 view = vmw_view_id_val_add(sw_context, view_type,
805 if (IS_ERR(view)) {
807 return PTR_ERR(view);
811 binding.bi.res = view;
2592 * vmw_cmd_dx_view_remove - validate a view remove command and schedule the view
2599 * Check that the view exists, and if it was not created using this command
2612 struct vmw_resource *view;
2619 &sw_context->staged_cmd_res, &view);
2620 if (ret || !view)
2624 * If the view wasn't created during this command batch, it might
2629 return vmw_resource_relocation_add(sw_context, view,
2755 struct vmw_resource *view;
2758 view = vmw_view_id_val_add(sw_context, vmw_view_sr,
2760 if (IS_ERR(view))
2761 return PTR_ERR(view);
2764 * Normally the shader-resource view is not gpu-dirtying, but for
2767 * the view points to, gpu-dirty.