Lines Matching refs:ctx

111  * @ctx: The context resource
117 struct vmw_resource *ctx;
144 struct vmw_resource *ctx);
240 node->ctx = res;
314 vmw_validation_res_set_dirty(sw_context->ctx,
321 ret = vmw_validation_add_resource(sw_context->ctx, res, priv_size,
363 vmw_validation_res_set_dirty(sw_context->ctx,
368 ret = vmw_validation_add_resource(sw_context->ctx, res, 0, dirty,
448 * @ctx: Pointer to the context resource
450 * This function puts all resources that were previously bound to @ctx on the
455 struct vmw_resource *ctx)
462 u32 cotable_max = has_sm5_context(ctx->dev_priv) ?
467 vmw_res_type(ctx) == vmw_res_dx_context) {
469 res = vmw_context_cotable(ctx, i);
482 binding_list = vmw_context_binding_list(ctx);
496 vmw_res_type(ctx) == vmw_res_dx_context) {
499 dx_query_mob = vmw_context_get_dx_query_mob(ctx);
501 ret = vmw_validation_add_bo(sw_context->ctx,
526 rel = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*rel));
613 ret = vmw_validation_res_reserve(sw_context->ctx, true);
672 vmw_validation_res_set_dirty(sw_context->ctx,
677 ret = vmw_validation_preload_res(sw_context->ctx, size);
763 ret = vmw_rebind_all_dx_query(val->ctx);
810 binding.bi.ctx = ctx_node->ctx;
877 struct vmw_resource *ctx;
891 &cmd->body.cid, &ctx);
905 node = vmw_execbuf_info_from_res(sw_context, ctx);
909 binding.bi.ctx = ctx;
1052 ret = vmw_validation_add_bo(sw_context->ctx,
1060 ret = vmw_validation_add_bo(sw_context->ctx,
1097 struct vmw_resource *ctx;
1101 ctx = ctx_entry->res;
1103 ret = vmw_fifo_emit_dummy_query(dev_priv, ctx->id);
1168 vmw_validation_preload_bo(sw_context->ctx);
1175 ret = vmw_validation_add_bo(sw_context->ctx, vmw_bo, true, false);
1180 reloc = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*reloc));
1223 vmw_validation_preload_bo(sw_context->ctx);
1230 ret = vmw_validation_add_bo(sw_context->ctx, vmw_bo, false, false);
1235 reloc = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*reloc));
1274 cotable_res = vmw_context_cotable(ctx_node->ctx, SVGA_COTABLE_DXQUERY);
1312 sw_context->dx_query_ctx = sw_context->dx_ctx_node->ctx;
1633 struct vmw_resource *ctx;
1641 &cmd->body.cid, &ctx);
1666 node = vmw_execbuf_info_from_res(sw_context, ctx);
1670 binding.bi.ctx = ctx;
1729 vmw_validation_res_switch_backup(sw_context->ctx, info, vbo,
1919 struct vmw_resource *ctx;
1925 &cmd->body.cid, &ctx);
1933 ret = vmw_compat_shader_add(dev_priv, vmw_context_res_man(ctx),
1958 struct vmw_resource *ctx;
1964 &cmd->body.cid, &ctx);
1971 ret = vmw_shader_remove(vmw_context_res_man(ctx), cmd->body.shid,
1995 struct vmw_resource *ctx, *res = NULL;
2009 &cmd->body.cid, &ctx);
2022 res = vmw_shader_lookup(vmw_context_res_man(ctx),
2049 ctx_info = vmw_execbuf_info_from_res(sw_context, ctx);
2053 binding.bi.ctx = ctx;
2147 binding.bi.ctx = ctx_node->ctx;
2234 binding.bi.ctx = ctx_node->ctx;
2286 binding.bi.ctx = ctx_node->ctx;
2327 binding.bi.ctx = ctx_node->ctx;
2452 res = vmw_context_cotable(ctx_node->ctx, vmw_view_cotables[view_type]);
2457 return vmw_view_add(sw_context->man, ctx_node->ctx, srf, view_type,
2503 binding.bi.ctx = ctx_node->ctx;
2537 res = vmw_context_cotable(ctx_node->ctx, vmw_so_cotables[so_type]);
2655 res = vmw_context_cotable(ctx_node->ctx, SVGA_COTABLE_DXSHADER);
2660 return vmw_dx_shader_add(sw_context->man, ctx_node->ctx,
2701 struct vmw_resource *ctx;
2711 &ctx);
2721 ctx = ctx_node->ctx;
2724 res = vmw_shader_lookup(vmw_context_res_man(ctx), cmd->body.shid, 0);
2770 vmw_validation_res_set_dirty(sw_context->ctx, rcache->private,
2976 res = vmw_context_cotable(ctx_node->ctx, SVGA_COTABLE_STREAMOUTPUT);
2981 return vmw_dx_streamoutput_add(sw_context->man, ctx_node->ctx,
3013 res = vmw_dx_streamoutput_lookup(vmw_context_res_man(ctx_node->ctx),
3042 res = vmw_dx_streamoutput_lookup(vmw_context_res_man(ctx_node->ctx),
3095 res = vmw_dx_streamoutput_lookup(vmw_context_res_man(ctx_node->ctx),
3108 binding.bi.ctx = ctx_node->ctx;
3879 sw_context->dx_ctx_node->ctx->id);
3912 u32 id = ((sw_context->dx_ctx_node) ? sw_context->dx_ctx_node->ctx->id :
3997 ret = vmw_validation_preload_res(sw_context->ctx, size);
4028 struct vmw_sw_context *sw_context = &dev_priv->ctx;
4112 sw_context->ctx = &val_ctx;
4179 vmw_validation_bo_fence(sw_context->ctx, fence);