Lines Matching refs:binding

786 		struct vmw_ctx_bindinfo_view binding;  in vmw_view_bindings_add()  local
797 binding.bi.ctx = ctx_node->ctx; in vmw_view_bindings_add()
798 binding.bi.res = view; in vmw_view_bindings_add()
799 binding.bi.bt = binding_type; in vmw_view_bindings_add()
800 binding.shader_slot = shader_slot; in vmw_view_bindings_add()
801 binding.slot = first_slot + i; in vmw_view_bindings_add()
802 vmw_binding_add(ctx_node->staged, &binding.bi, in vmw_view_bindings_add()
803 shader_slot, binding.slot); in vmw_view_bindings_add()
889 struct vmw_ctx_bindinfo_view binding; in vmw_cmd_set_render_target_check() local
896 binding.bi.ctx = ctx; in vmw_cmd_set_render_target_check()
897 binding.bi.res = res; in vmw_cmd_set_render_target_check()
898 binding.bi.bt = vmw_ctx_binding_rt; in vmw_cmd_set_render_target_check()
899 binding.slot = cmd->body.type; in vmw_cmd_set_render_target_check()
900 vmw_binding_add(node->staged, &binding.bi, 0, binding.slot); in vmw_cmd_set_render_target_check()
1648 struct vmw_ctx_bindinfo_tex binding; in vmw_cmd_tex_state() local
1655 binding.bi.ctx = ctx; in vmw_cmd_tex_state()
1656 binding.bi.res = res; in vmw_cmd_tex_state()
1657 binding.bi.bt = vmw_ctx_binding_tex; in vmw_cmd_tex_state()
1658 binding.texture_stage = cur_state->stage; in vmw_cmd_tex_state()
1659 vmw_binding_add(node->staged, &binding.bi, 0, in vmw_cmd_tex_state()
1660 binding.texture_stage); in vmw_cmd_tex_state()
1979 struct vmw_ctx_bindinfo_shader binding; in vmw_cmd_set_shader() local
2039 binding.bi.ctx = ctx; in vmw_cmd_set_shader()
2040 binding.bi.res = res; in vmw_cmd_set_shader()
2041 binding.bi.bt = vmw_ctx_binding_shader; in vmw_cmd_set_shader()
2042 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_set_shader()
2043 vmw_binding_add(ctx_info->staged, &binding.bi, binding.shader_slot, 0); in vmw_cmd_set_shader()
2114 struct vmw_ctx_bindinfo_cb binding; in vmw_cmd_dx_set_single_constant_buffer() local
2127 binding.bi.ctx = ctx_node->ctx; in vmw_cmd_dx_set_single_constant_buffer()
2128 binding.bi.res = res; in vmw_cmd_dx_set_single_constant_buffer()
2129 binding.bi.bt = vmw_ctx_binding_cb; in vmw_cmd_dx_set_single_constant_buffer()
2130 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_dx_set_single_constant_buffer()
2131 binding.offset = cmd->body.offsetInBytes; in vmw_cmd_dx_set_single_constant_buffer()
2132 binding.size = cmd->body.sizeInBytes; in vmw_cmd_dx_set_single_constant_buffer()
2133 binding.slot = cmd->body.slot; in vmw_cmd_dx_set_single_constant_buffer()
2135 if (binding.shader_slot >= max_shader_num || in vmw_cmd_dx_set_single_constant_buffer()
2136 binding.slot >= SVGA3D_DX_MAX_CONSTBUFFERS) { in vmw_cmd_dx_set_single_constant_buffer()
2139 (unsigned int) binding.slot); in vmw_cmd_dx_set_single_constant_buffer()
2143 vmw_binding_add(ctx_node->staged, &binding.bi, binding.shader_slot, in vmw_cmd_dx_set_single_constant_buffer()
2144 binding.slot); in vmw_cmd_dx_set_single_constant_buffer()
2237 struct vmw_ctx_bindinfo_shader binding; in vmw_cmd_dx_set_shader() local
2266 binding.bi.ctx = ctx_node->ctx; in vmw_cmd_dx_set_shader()
2267 binding.bi.res = res; in vmw_cmd_dx_set_shader()
2268 binding.bi.bt = vmw_ctx_binding_dx_shader; in vmw_cmd_dx_set_shader()
2269 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_dx_set_shader()
2271 vmw_binding_add(ctx_node->staged, &binding.bi, binding.shader_slot, 0); in vmw_cmd_dx_set_shader()
2289 struct vmw_ctx_bindinfo_vb binding; in vmw_cmd_dx_set_vertex_buffers() local
2318 binding.bi.ctx = ctx_node->ctx; in vmw_cmd_dx_set_vertex_buffers()
2319 binding.bi.bt = vmw_ctx_binding_vb; in vmw_cmd_dx_set_vertex_buffers()
2320 binding.bi.res = res; in vmw_cmd_dx_set_vertex_buffers()
2321 binding.offset = cmd->buf[i].offset; in vmw_cmd_dx_set_vertex_buffers()
2322 binding.stride = cmd->buf[i].stride; in vmw_cmd_dx_set_vertex_buffers()
2323 binding.slot = i + cmd->body.startBuffer; in vmw_cmd_dx_set_vertex_buffers()
2325 vmw_binding_add(ctx_node->staged, &binding.bi, 0, binding.slot); in vmw_cmd_dx_set_vertex_buffers()
2344 struct vmw_ctx_bindinfo_ib binding; in vmw_cmd_dx_set_index_buffer() local
2359 binding.bi.ctx = ctx_node->ctx; in vmw_cmd_dx_set_index_buffer()
2360 binding.bi.res = res; in vmw_cmd_dx_set_index_buffer()
2361 binding.bi.bt = vmw_ctx_binding_ib; in vmw_cmd_dx_set_index_buffer()
2362 binding.offset = cmd->body.offset; in vmw_cmd_dx_set_index_buffer()
2363 binding.format = cmd->body.format; in vmw_cmd_dx_set_index_buffer()
2365 vmw_binding_add(ctx_node->staged, &binding.bi, 0, 0); in vmw_cmd_dx_set_index_buffer()
2507 struct vmw_ctx_bindinfo_so_target binding; in vmw_cmd_dx_set_so_targets() local
2535 binding.bi.ctx = ctx_node->ctx; in vmw_cmd_dx_set_so_targets()
2536 binding.bi.res = res; in vmw_cmd_dx_set_so_targets()
2537 binding.bi.bt = vmw_ctx_binding_so_target; in vmw_cmd_dx_set_so_targets()
2538 binding.offset = cmd->targets[i].offset; in vmw_cmd_dx_set_so_targets()
2539 binding.size = cmd->targets[i].sizeInBytes; in vmw_cmd_dx_set_so_targets()
2540 binding.slot = i; in vmw_cmd_dx_set_so_targets()
2542 vmw_binding_add(ctx_node->staged, &binding.bi, 0, binding.slot); in vmw_cmd_dx_set_so_targets()
3103 struct vmw_ctx_bindinfo_so binding; in vmw_cmd_dx_set_streamoutput() local
3142 binding.bi.ctx = ctx_node->ctx; in vmw_cmd_dx_set_streamoutput()
3143 binding.bi.res = res; in vmw_cmd_dx_set_streamoutput()
3144 binding.bi.bt = vmw_ctx_binding_so; in vmw_cmd_dx_set_streamoutput()
3145 binding.slot = 0; /* Only one SO set to context at a time. */ in vmw_cmd_dx_set_streamoutput()
3147 vmw_binding_add(sw_context->dx_ctx_node->staged, &binding.bi, 0, in vmw_cmd_dx_set_streamoutput()
3148 binding.slot); in vmw_cmd_dx_set_streamoutput()