Lines Matching full:body
38 __type body; \
706 cmd->header.size = sizeof(cmd->body); in vmw_rebind_all_dx_query()
707 cmd->body.cid = ctx_res->id; in vmw_rebind_all_dx_query()
708 cmd->body.mobid = dx_query_mob->tbo.resource->start; in vmw_rebind_all_dx_query()
815 &cmd->body, NULL); in vmw_cmd_cid_check()
857 if (cmd->body.type >= SVGA3D_RT_MAX) { in vmw_cmd_set_render_target_check()
859 (unsigned int) cmd->body.type); in vmw_cmd_set_render_target_check()
865 &cmd->body.cid, &ctx); in vmw_cmd_set_render_target_check()
871 &cmd->body.target.sid, &res); in vmw_cmd_set_render_target_check()
886 binding.slot = cmd->body.type; in vmw_cmd_set_render_target_check()
904 &cmd->body.src.sid, NULL); in vmw_cmd_surface_copy_check()
910 &cmd->body.dest.sid, NULL); in vmw_cmd_surface_copy_check()
923 &cmd->body.src, NULL); in vmw_cmd_buffer_copy_check()
929 &cmd->body.dest, NULL); in vmw_cmd_buffer_copy_check()
942 &cmd->body.srcSid, NULL); in vmw_cmd_pred_copy_check()
948 &cmd->body.dstSid, NULL); in vmw_cmd_pred_copy_check()
961 &cmd->body.src.sid, NULL); in vmw_cmd_stretch_blt_check()
967 &cmd->body.dest.sid, NULL); in vmw_cmd_stretch_blt_check()
979 &cmd->body.srcImage.sid, NULL); in vmw_cmd_blt_surf_screen_check()
991 &cmd->body.sid, NULL); in vmw_cmd_present_check()
1247 if (cmd->body.type < SVGA3D_QUERYTYPE_MIN || in vmw_cmd_dx_define_query()
1248 cmd->body.type >= SVGA3D_QUERYTYPE_MAX) in vmw_cmd_dx_define_query()
1254 ret = vmw_cotable_notify(cotable_res, cmd->body.queryId); in vmw_cmd_dx_define_query()
1284 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_dx_bind_query()
1311 &cmd->body.cid, NULL); in vmw_cmd_begin_gb_query()
1335 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_begin_query()
1336 gb_cmd.body.type = cmd->body.type; in vmw_cmd_begin_query()
1344 &cmd->body.cid, NULL); in vmw_cmd_begin_query()
1367 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_end_gb_query()
1400 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_end_query()
1401 gb_cmd.body.type = cmd->body.type; in vmw_cmd_end_query()
1402 gb_cmd.body.mobid = cmd->body.guestResult.gmrId; in vmw_cmd_end_query()
1403 gb_cmd.body.offset = cmd->body.guestResult.offset; in vmw_cmd_end_query()
1414 &cmd->body.guestResult, &vmw_bo); in vmw_cmd_end_query()
1443 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_wait_gb_query()
1474 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_wait_query()
1475 gb_cmd.body.type = cmd->body.type; in vmw_cmd_wait_query()
1476 gb_cmd.body.mobid = cmd->body.guestResult.gmrId; in vmw_cmd_wait_query()
1477 gb_cmd.body.offset = cmd->body.guestResult.offset; in vmw_cmd_wait_query()
1488 &cmd->body.guestResult, &vmw_bo); in vmw_cmd_wait_query()
1509 suffix = (SVGA3dCmdSurfaceDMASuffix *)((unsigned long) &cmd->body + in vmw_cmd_dma()
1519 &cmd->body.guest.ptr, &vmw_bo); in vmw_cmd_dma()
1525 if (unlikely(cmd->body.guest.ptr.offset > bo_size)) { in vmw_cmd_dma()
1530 bo_size -= cmd->body.guest.ptr.offset; in vmw_cmd_dma()
1534 dirty = (cmd->body.transfer == SVGA3D_WRITE_HOST_VRAM) ? in vmw_cmd_dma()
1537 user_surface_converter, &cmd->body.host.sid, in vmw_cmd_dma()
1575 maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl); in vmw_cmd_draw()
1577 if (unlikely(cmd->body.numVertexDecls > maxnum)) { in vmw_cmd_draw()
1582 for (i = 0; i < cmd->body.numVertexDecls; ++i, ++decl) { in vmw_cmd_draw()
1591 maxnum = (header->size - sizeof(cmd->body) - in vmw_cmd_draw()
1592 cmd->body.numVertexDecls * sizeof(*decl)) / sizeof(*range); in vmw_cmd_draw()
1593 if (unlikely(cmd->body.numRanges > maxnum)) { in vmw_cmd_draw()
1599 for (i = 0; i < cmd->body.numRanges; ++i, ++range) { in vmw_cmd_draw()
1627 &cmd->body.cid, &ctx); in vmw_cmd_tex_state()
1676 SVGAFifoCmdDefineGMRFB body; in vmw_cmd_check_define_gmrfb() member
1679 return vmw_translate_guest_ptr(dev_priv, sw_context, &cmd->body.ptr, in vmw_cmd_check_define_gmrfb()
1770 user_surface_converter, &cmd->body.sid, in vmw_cmd_bind_gb_surface()
1771 &cmd->body.mobid, 0); in vmw_cmd_bind_gb_surface()
1790 &cmd->body.image.sid, NULL); in vmw_cmd_update_gb_image()
1809 &cmd->body.sid, NULL); in vmw_cmd_update_gb_surface()
1828 &cmd->body.image.sid, NULL); in vmw_cmd_readback_gb_image()
1848 &cmd->body.sid, NULL); in vmw_cmd_readback_gb_surface()
1868 &cmd->body.image.sid, NULL); in vmw_cmd_invalidate_gb_image()
1888 &cmd->body.sid, NULL); in vmw_cmd_invalidate_gb_surface()
1911 &cmd->body.cid, &ctx); in vmw_cmd_shader_define()
1918 size = cmd->header.size - sizeof(cmd->body); in vmw_cmd_shader_define()
1920 cmd->body.shid, cmd + 1, cmd->body.type, in vmw_cmd_shader_define()
1950 &cmd->body.cid, &ctx); in vmw_cmd_shader_destroy()
1957 ret = vmw_shader_remove(vmw_context_res_man(ctx), cmd->body.shid, in vmw_cmd_shader_destroy()
1958 cmd->body.type, &sw_context->staged_cmd_res); in vmw_cmd_shader_destroy()
1987 if (!vmw_shadertype_is_valid(VMW_SM_LEGACY, cmd->body.type)) { in vmw_cmd_set_shader()
1989 (unsigned int) cmd->body.type); in vmw_cmd_set_shader()
1995 &cmd->body.cid, &ctx); in vmw_cmd_set_shader()
2002 if (cmd->body.shid != SVGA3D_INVALID_ID) { in vmw_cmd_set_shader()
2009 cmd->body.shid, cmd->body.type); in vmw_cmd_set_shader()
2020 &cmd->body.shid), in vmw_cmd_set_shader()
2030 user_shader_converter, &cmd->body.shid, in vmw_cmd_set_shader()
2043 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_set_shader()
2067 &cmd->body.cid, NULL); in vmw_cmd_set_shader_const()
2092 user_shader_converter, &cmd->body.shid, in vmw_cmd_bind_gb_shader()
2093 &cmd->body.mobid, cmd->body.offsetInBytes); in vmw_cmd_bind_gb_shader()
2122 &cmd->body.sid, &res); in vmw_cmd_dx_set_single_constant_buffer()
2126 if (!vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type) || in vmw_cmd_dx_set_single_constant_buffer()
2127 cmd->body.slot >= SVGA3D_DX_MAX_CONSTBUFFERS) { in vmw_cmd_dx_set_single_constant_buffer()
2129 (unsigned int) cmd->body.type, in vmw_cmd_dx_set_single_constant_buffer()
2130 (unsigned int) cmd->body.slot); in vmw_cmd_dx_set_single_constant_buffer()
2137 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_dx_set_single_constant_buffer()
2138 binding.offset = cmd->body.offsetInBytes; in vmw_cmd_dx_set_single_constant_buffer()
2139 binding.size = cmd->body.sizeInBytes; in vmw_cmd_dx_set_single_constant_buffer()
2140 binding.slot = cmd->body.slot; in vmw_cmd_dx_set_single_constant_buffer()
2173 if (cmd->body.slot >= SVGA3D_DX_MAX_CONSTBUFFERS) { in vmw_cmd_dx_set_constant_buffer_offset()
2175 (unsigned int) cmd->body.slot); in vmw_cmd_dx_set_constant_buffer_offset()
2181 cmd->body.slot, cmd->body.offsetInBytes); in vmw_cmd_dx_set_constant_buffer_offset()
2201 u32 num_sr_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_shader_res()
2204 if ((u64) cmd->body.startView + (u64) num_sr_view > in vmw_cmd_dx_set_shader_res()
2206 !vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type)) { in vmw_cmd_dx_set_shader_res()
2213 cmd->body.type - SVGA3D_SHADERTYPE_MIN, in vmw_cmd_dx_set_shader_res()
2215 cmd->body.startView); in vmw_cmd_dx_set_shader_res()
2240 if (!vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type)) { in vmw_cmd_dx_set_shader()
2242 (unsigned int) cmd->body.type); in vmw_cmd_dx_set_shader()
2246 if (cmd->body.shaderId != SVGA3D_INVALID_ID) { in vmw_cmd_dx_set_shader()
2247 res = vmw_shader_lookup(sw_context->man, cmd->body.shaderId, 0); in vmw_cmd_dx_set_shader()
2263 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_dx_set_shader()
2287 SVGA3dCmdDXSetVertexBuffers body; in vmw_cmd_dx_set_vertex_buffers() member
2296 num = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_vertex_buffers()
2298 if ((u64)num + (u64)cmd->body.startBuffer > in vmw_cmd_dx_set_vertex_buffers()
2317 binding.slot = i + cmd->body.startBuffer; in vmw_cmd_dx_set_vertex_buffers()
2349 &cmd->body.sid, &res); in vmw_cmd_dx_set_index_buffer()
2356 binding.offset = cmd->body.offset; in vmw_cmd_dx_set_index_buffer()
2357 binding.format = cmd->body.format; in vmw_cmd_dx_set_index_buffer()
2378 u32 num_rt_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_rendertargets()
2388 0, &cmd->body.depthStencilViewId, 1, 0); in vmw_cmd_dx_set_rendertargets()
2414 cmd->body.renderTargetViewId); in vmw_cmd_dx_clear_rendertarget_view()
2436 cmd->body.depthStencilViewId); in vmw_cmd_dx_clear_depthstencil_view()
2452 * same initial command body layout. in vmw_cmd_dx_view_define()
2507 SVGA3dCmdDXSetSOTargets body; in vmw_cmd_dx_set_so_targets() member
2516 num = (cmd->header.size - sizeof(cmd->body)) / sizeof(SVGA3dSoTarget); in vmw_cmd_dx_set_so_targets()
2552 * the same initial command body layout. in vmw_cmd_dx_so_define()
2639 union vmw_view_destroy body; in vmw_cmd_dx_view_remove() member
2648 ret = vmw_view_remove(sw_context->man, cmd->body.view_id, view_type, in vmw_cmd_dx_view_remove()
2688 ret = vmw_cotable_notify(res, cmd->body.shaderId); in vmw_cmd_dx_define_shader()
2693 cmd->body.shaderId, cmd->body.type, in vmw_cmd_dx_define_shader()
2716 ret = vmw_shader_remove(sw_context->man, cmd->body.shaderId, 0, in vmw_cmd_dx_destroy_shader()
2739 if (cmd->body.cid != SVGA3D_INVALID_ID) { in vmw_cmd_dx_bind_shader()
2742 user_context_converter, &cmd->body.cid, in vmw_cmd_dx_bind_shader()
2756 res = vmw_shader_lookup(vmw_context_res_man(ctx), cmd->body.shid, 0); in vmw_cmd_dx_bind_shader()
2770 &cmd->body.mobid, in vmw_cmd_dx_bind_shader()
2771 cmd->body.offsetInBytes); in vmw_cmd_dx_bind_shader()
2791 cmd->body.shaderResourceViewId); in vmw_cmd_dx_genmips()
2825 &cmd->body.srcSid, NULL); in vmw_cmd_dx_transfer_from_buffer()
2831 &cmd->body.destSid, NULL); in vmw_cmd_dx_transfer_from_buffer()
2853 &cmd->body.surface.sid, NULL); in vmw_cmd_intra_surface_copy()
2892 SVGA3dCmdDXClearUAViewUint body; in vmw_cmd_clear_uav_uint() member
2900 cmd->body.uaViewId); in vmw_cmd_clear_uav_uint()
2911 SVGA3dCmdDXClearUAViewFloat body; in vmw_cmd_clear_uav_float() member
2919 cmd->body.uaViewId); in vmw_cmd_clear_uav_float()
2930 SVGA3dCmdDXSetUAViews body; in vmw_cmd_set_uav() member
2932 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_uav()
2951 cmd->body.uavSpliceIndex); in vmw_cmd_set_uav()
2962 SVGA3dCmdDXSetCSUAViews body; in vmw_cmd_set_cs_uav() member
2964 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_cs_uav()
2983 cmd->body.startIndex); in vmw_cmd_set_cs_uav()
2996 SVGA3dCmdDXDefineStreamOutputWithMob body; in vmw_cmd_dx_define_streamoutput() member
3011 ret = vmw_cotable_notify(res, cmd->body.soid); in vmw_cmd_dx_define_streamoutput()
3016 cmd->body.soid, in vmw_cmd_dx_define_streamoutput()
3028 SVGA3dCmdDXDestroyStreamOutput body; in vmw_cmd_dx_destroy_streamoutput() member
3048 cmd->body.soid); in vmw_cmd_dx_destroy_streamoutput()
3052 return vmw_dx_streamoutput_remove(sw_context->man, cmd->body.soid, in vmw_cmd_dx_destroy_streamoutput()
3064 SVGA3dCmdDXBindStreamOutput body; in vmw_cmd_dx_bind_streamoutput() member
3077 cmd->body.soid); in vmw_cmd_dx_bind_streamoutput()
3083 vmw_dx_streamoutput_set_size(res, cmd->body.sizeInBytes); in vmw_cmd_dx_bind_streamoutput()
3093 &cmd->body.mobid, in vmw_cmd_dx_bind_streamoutput()
3094 cmd->body.offsetInBytes); in vmw_cmd_dx_bind_streamoutput()
3106 SVGA3dCmdDXSetStreamOutput body; in vmw_cmd_dx_set_streamoutput() member
3115 if (cmd->body.soid == SVGA3D_INVALID_ID) in vmw_cmd_dx_set_streamoutput()
3130 cmd->body.soid); in vmw_cmd_dx_set_streamoutput()
3159 SVGA3dCmdDXDrawIndexedInstancedIndirect body; in vmw_cmd_indexed_instanced_indirect() member
3167 &cmd->body.argsBufferSid, NULL); in vmw_cmd_indexed_instanced_indirect()
3176 SVGA3dCmdDXDrawInstancedIndirect body; in vmw_cmd_instanced_indirect() member
3184 &cmd->body.argsBufferSid, NULL); in vmw_cmd_instanced_indirect()
3193 SVGA3dCmdDXDispatchIndirect body; in vmw_cmd_dispatch_indirect() member
3201 &cmd->body.argsBufferSid, NULL); in vmw_cmd_dispatch_indirect()