Lines Matching full:view
342 * vmw_view_res_val_add - Add a view and the surface it's pointing to to the
346 * @view: Pointer to the view resource.
351 struct vmw_resource *view) in vmw_view_res_val_add() argument
356 * First add the resource the view is pointing to, otherwise it may be in vmw_view_res_val_add()
357 * swapped out when the view is validated. in vmw_view_res_val_add()
359 ret = vmw_execbuf_res_val_add(sw_context, vmw_view_srf(view), in vmw_view_res_val_add()
360 vmw_view_dirtying(view), vmw_val_add_flag_noctx); in vmw_view_res_val_add()
364 return vmw_execbuf_res_val_add(sw_context, view, VMW_RES_DIRTY_NONE, in vmw_view_res_val_add()
369 * vmw_view_id_val_add - Look up a view and add it and the surface it's pointing
373 * @view_type: The view type to look up.
374 * @id: view id of the view.
376 * The view is represented by a view id and the DX context it's created on, or
388 struct vmw_resource *view; in vmw_view_id_val_add() local
394 view = vmw_view_lookup(sw_context->man, view_type, id); in vmw_view_id_val_add()
395 if (IS_ERR(view)) in vmw_view_id_val_add()
396 return view; in vmw_view_id_val_add()
398 ret = vmw_view_res_val_add(sw_context, view); in vmw_view_id_val_add()
402 return view; in vmw_view_id_val_add()
748 * vmw_view_bindings_add - Add an array of view bindings to a context binding
752 * @view_type: View type for the bindings.
755 * @view_ids: Array of view ids to be bound.
756 * @num_views: Number of view ids in @view_ids.
757 * @first_slot: The binding slot to be used for the first view id in @view_ids.
774 struct vmw_resource *view = NULL; in vmw_view_bindings_add() local
777 view = vmw_view_id_val_add(sw_context, view_type, in vmw_view_bindings_add()
779 if (IS_ERR(view)) { in vmw_view_bindings_add()
780 VMW_DEBUG_USER("View not found.\n"); in vmw_view_bindings_add()
781 return PTR_ERR(view); in vmw_view_bindings_add()
785 binding.bi.res = view; in vmw_view_bindings_add()
2622 * vmw_cmd_dx_view_remove - validate a view remove command and schedule the view
2629 * Check that the view exists, and if it was not created using this command
2642 struct vmw_resource *view; in vmw_cmd_dx_view_remove() local
2649 &sw_context->staged_cmd_res, &view); in vmw_cmd_dx_view_remove()
2650 if (ret || !view) in vmw_cmd_dx_view_remove()
2654 * If the view wasn't created during this command batch, it might in vmw_cmd_dx_view_remove()
2659 return vmw_resource_relocation_add(sw_context, view, in vmw_cmd_dx_view_remove()
2787 struct vmw_resource *view; in vmw_cmd_dx_genmips() local
2790 view = vmw_view_id_val_add(sw_context, vmw_view_sr, in vmw_cmd_dx_genmips()
2792 if (IS_ERR(view)) in vmw_cmd_dx_genmips()
2793 return PTR_ERR(view); in vmw_cmd_dx_genmips()
2796 * Normally the shader-resource view is not gpu-dirtying, but for in vmw_cmd_dx_genmips()
2799 * the view points to, gpu-dirty. in vmw_cmd_dx_genmips()