Lines Matching defs:binding
121 * @cur: The context's persistent binding state
122 * @staged: The binding state changes of this command buffer
172 * vmw_execbuf_bindings_commit - Commit modified binding state
175 * @backoff: Whether this is part of the error path and binding state changes
266 * private information in the validation node. Typically the binding manager
753 * Rebind context binding points that have been scrubbed because of eviction.
779 * vmw_view_bindings_add - Add an array of view bindings to a context binding
784 * @binding_type: Binding type for the bindings.
788 * @first_slot: The binding slot to be used for the first view id in @view_ids.
804 struct vmw_ctx_bindinfo_view binding;
815 binding.bi.ctx = ctx_node->ctx;
816 binding.bi.res = view;
817 binding.bi.bt = binding_type;
818 binding.shader_slot = shader_slot;
819 binding.slot = first_slot + i;
820 vmw_binding_add(ctx_node->staged, &binding.bi,
821 shader_slot, binding.slot);
907 struct vmw_ctx_bindinfo_view binding;
914 binding.bi.ctx = ctx;
915 binding.bi.res = res;
916 binding.bi.bt = vmw_ctx_binding_rt;
917 binding.slot = cmd->body.type;
918 vmw_binding_add(node->staged, &binding.bi, 0, binding.slot);
1668 struct vmw_ctx_bindinfo_tex binding;
1675 binding.bi.ctx = ctx;
1676 binding.bi.res = res;
1677 binding.bi.bt = vmw_ctx_binding_tex;
1678 binding.texture_stage = cur_state->stage;
1679 vmw_binding_add(node->staged, &binding.bi, 0,
1680 binding.texture_stage);
1745 * @converter: Information about user-space binding for this resource type.
1999 struct vmw_ctx_bindinfo_shader binding;
2058 binding.bi.ctx = ctx;
2059 binding.bi.res = res;
2060 binding.bi.bt = vmw_ctx_binding_shader;
2061 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN;
2062 vmw_binding_add(ctx_info->staged, &binding.bi, binding.shader_slot, 0);
2130 struct vmw_ctx_bindinfo_cb binding;
2143 binding.bi.ctx = ctx_node->ctx;
2144 binding.bi.res = res;
2145 binding.bi.bt = vmw_ctx_binding_cb;
2146 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN;
2147 binding.offset = cmd->body.offsetInBytes;
2148 binding.size = cmd->body.sizeInBytes;
2149 binding.slot = cmd->body.slot;
2151 if (binding.shader_slot >= SVGA3D_NUM_SHADERTYPE_DX10 ||
2152 binding.slot >= SVGA3D_DX_MAX_CONSTBUFFERS) {
2155 (unsigned int) binding.slot);
2159 vmw_binding_add(ctx_node->staged, &binding.bi, binding.shader_slot,
2160 binding.slot);
2185 VMW_DEBUG_USER("Invalid shader binding.\n");
2210 struct vmw_ctx_bindinfo_shader binding;
2228 VMW_DEBUG_USER("Could not find shader for binding.\n");
2238 binding.bi.ctx = ctx_node->ctx;
2239 binding.bi.res = res;
2240 binding.bi.bt = vmw_ctx_binding_dx_shader;
2241 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN;
2243 vmw_binding_add(ctx_node->staged, &binding.bi, binding.shader_slot, 0);
2261 struct vmw_ctx_bindinfo_vb binding;
2290 binding.bi.ctx = ctx_node->ctx;
2291 binding.bi.bt = vmw_ctx_binding_vb;
2292 binding.bi.res = res;
2293 binding.offset = cmd->buf[i].offset;
2294 binding.stride = cmd->buf[i].stride;
2295 binding.slot = i + cmd->body.startBuffer;
2297 vmw_binding_add(ctx_node->staged, &binding.bi, 0, binding.slot);
2316 struct vmw_ctx_bindinfo_ib binding;
2331 binding.bi.ctx = ctx_node->ctx;
2332 binding.bi.res = res;
2333 binding.bi.bt = vmw_ctx_binding_ib;
2334 binding.offset = cmd->body.offset;
2335 binding.format = cmd->body.format;
2337 vmw_binding_add(ctx_node->staged, &binding.bi, 0, 0);
2361 VMW_DEBUG_USER("Invalid DX Rendertarget binding.\n");
2479 struct vmw_ctx_bindinfo_so binding;
2495 VMW_DEBUG_USER("Invalid DX SO binding.\n");
2507 binding.bi.ctx = ctx_node->ctx;
2508 binding.bi.res = res;
2509 binding.bi.bt = vmw_ctx_binding_so,
2510 binding.offset = cmd->targets[i].offset;
2511 binding.size = cmd->targets[i].sizeInBytes;
2512 binding.slot = i;
2514 vmw_binding_add(ctx_node->staged, &binding.bi, 0, binding.slot);