Lines Matching full:body
55 __type body; \
723 cmd->header.size = sizeof(cmd->body); in vmw_rebind_all_dx_query()
724 cmd->body.cid = ctx_res->id; in vmw_rebind_all_dx_query()
725 cmd->body.mobid = dx_query_mob->tbo.resource->start; in vmw_rebind_all_dx_query()
832 &cmd->body, NULL); in vmw_cmd_cid_check()
874 if (cmd->body.type >= SVGA3D_RT_MAX) { in vmw_cmd_set_render_target_check()
876 (unsigned int) cmd->body.type); in vmw_cmd_set_render_target_check()
882 &cmd->body.cid, &ctx); in vmw_cmd_set_render_target_check()
888 &cmd->body.target.sid, &res); in vmw_cmd_set_render_target_check()
903 binding.slot = cmd->body.type; in vmw_cmd_set_render_target_check()
921 &cmd->body.src.sid, NULL); in vmw_cmd_surface_copy_check()
927 &cmd->body.dest.sid, NULL); in vmw_cmd_surface_copy_check()
940 &cmd->body.src, NULL); in vmw_cmd_buffer_copy_check()
946 &cmd->body.dest, NULL); in vmw_cmd_buffer_copy_check()
959 &cmd->body.srcSid, NULL); in vmw_cmd_pred_copy_check()
965 &cmd->body.dstSid, NULL); in vmw_cmd_pred_copy_check()
978 &cmd->body.src.sid, NULL); in vmw_cmd_stretch_blt_check()
984 &cmd->body.dest.sid, NULL); in vmw_cmd_stretch_blt_check()
996 &cmd->body.srcImage.sid, NULL); in vmw_cmd_blt_surf_screen_check()
1008 &cmd->body.sid, NULL); in vmw_cmd_present_check()
1264 if (cmd->body.type < SVGA3D_QUERYTYPE_MIN || in vmw_cmd_dx_define_query()
1265 cmd->body.type >= SVGA3D_QUERYTYPE_MAX) in vmw_cmd_dx_define_query()
1269 ret = vmw_cotable_notify(cotable_res, cmd->body.queryId); in vmw_cmd_dx_define_query()
1299 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_dx_bind_query()
1326 &cmd->body.cid, NULL); in vmw_cmd_begin_gb_query()
1350 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_begin_query()
1351 gb_cmd.body.type = cmd->body.type; in vmw_cmd_begin_query()
1359 &cmd->body.cid, NULL); in vmw_cmd_begin_query()
1382 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_end_gb_query()
1415 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_end_query()
1416 gb_cmd.body.type = cmd->body.type; in vmw_cmd_end_query()
1417 gb_cmd.body.mobid = cmd->body.guestResult.gmrId; in vmw_cmd_end_query()
1418 gb_cmd.body.offset = cmd->body.guestResult.offset; in vmw_cmd_end_query()
1429 &cmd->body.guestResult, &vmw_bo); in vmw_cmd_end_query()
1458 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_wait_gb_query()
1489 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_wait_query()
1490 gb_cmd.body.type = cmd->body.type; in vmw_cmd_wait_query()
1491 gb_cmd.body.mobid = cmd->body.guestResult.gmrId; in vmw_cmd_wait_query()
1492 gb_cmd.body.offset = cmd->body.guestResult.offset; in vmw_cmd_wait_query()
1503 &cmd->body.guestResult, &vmw_bo); in vmw_cmd_wait_query()
1523 suffix = (SVGA3dCmdSurfaceDMASuffix *)((unsigned long) &cmd->body + in vmw_cmd_dma()
1533 &cmd->body.guest.ptr, &vmw_bo); in vmw_cmd_dma()
1539 if (unlikely(cmd->body.guest.ptr.offset > bo_size)) { in vmw_cmd_dma()
1544 bo_size -= cmd->body.guest.ptr.offset; in vmw_cmd_dma()
1548 dirty = (cmd->body.transfer == SVGA3D_WRITE_HOST_VRAM) ? in vmw_cmd_dma()
1552 &cmd->body.host.sid, NULL); in vmw_cmd_dma()
1583 maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl); in vmw_cmd_draw()
1585 if (unlikely(cmd->body.numVertexDecls > maxnum)) { in vmw_cmd_draw()
1590 for (i = 0; i < cmd->body.numVertexDecls; ++i, ++decl) { in vmw_cmd_draw()
1599 maxnum = (header->size - sizeof(cmd->body) - in vmw_cmd_draw()
1600 cmd->body.numVertexDecls * sizeof(*decl)) / sizeof(*range); in vmw_cmd_draw()
1601 if (unlikely(cmd->body.numRanges > maxnum)) { in vmw_cmd_draw()
1607 for (i = 0; i < cmd->body.numRanges; ++i, ++range) { in vmw_cmd_draw()
1635 &cmd->body.cid, &ctx); in vmw_cmd_tex_state()
1684 SVGAFifoCmdDefineGMRFB body; in vmw_cmd_check_define_gmrfb() member
1687 return vmw_translate_guest_ptr(dev_priv, sw_context, &cmd->body.ptr, in vmw_cmd_check_define_gmrfb()
1778 user_surface_converter, &cmd->body.sid, in vmw_cmd_bind_gb_surface()
1779 &cmd->body.mobid, 0); in vmw_cmd_bind_gb_surface()
1798 &cmd->body.image.sid, NULL); in vmw_cmd_update_gb_image()
1817 &cmd->body.sid, NULL); in vmw_cmd_update_gb_surface()
1836 &cmd->body.image.sid, NULL); in vmw_cmd_readback_gb_image()
1856 &cmd->body.sid, NULL); in vmw_cmd_readback_gb_surface()
1876 &cmd->body.image.sid, NULL); in vmw_cmd_invalidate_gb_image()
1896 &cmd->body.sid, NULL); in vmw_cmd_invalidate_gb_surface()
1919 &cmd->body.cid, &ctx); in vmw_cmd_shader_define()
1926 size = cmd->header.size - sizeof(cmd->body); in vmw_cmd_shader_define()
1928 cmd->body.shid, cmd + 1, cmd->body.type, in vmw_cmd_shader_define()
1958 &cmd->body.cid, &ctx); in vmw_cmd_shader_destroy()
1965 ret = vmw_shader_remove(vmw_context_res_man(ctx), cmd->body.shid, in vmw_cmd_shader_destroy()
1966 cmd->body.type, &sw_context->staged_cmd_res); in vmw_cmd_shader_destroy()
1995 if (!vmw_shadertype_is_valid(VMW_SM_LEGACY, cmd->body.type)) { in vmw_cmd_set_shader()
1997 (unsigned int) cmd->body.type); in vmw_cmd_set_shader()
2003 &cmd->body.cid, &ctx); in vmw_cmd_set_shader()
2010 if (cmd->body.shid != SVGA3D_INVALID_ID) { in vmw_cmd_set_shader()
2017 cmd->body.shid, cmd->body.type); in vmw_cmd_set_shader()
2028 &cmd->body.shid), in vmw_cmd_set_shader()
2038 user_shader_converter, &cmd->body.shid, in vmw_cmd_set_shader()
2051 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_set_shader()
2075 &cmd->body.cid, NULL); in vmw_cmd_set_shader_const()
2100 user_shader_converter, &cmd->body.shid, in vmw_cmd_bind_gb_shader()
2101 &cmd->body.mobid, cmd->body.offsetInBytes); in vmw_cmd_bind_gb_shader()
2130 &cmd->body.sid, &res); in vmw_cmd_dx_set_single_constant_buffer()
2134 if (!vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type) || in vmw_cmd_dx_set_single_constant_buffer()
2135 cmd->body.slot >= SVGA3D_DX_MAX_CONSTBUFFERS) { in vmw_cmd_dx_set_single_constant_buffer()
2137 (unsigned int) cmd->body.type, in vmw_cmd_dx_set_single_constant_buffer()
2138 (unsigned int) cmd->body.slot); in vmw_cmd_dx_set_single_constant_buffer()
2145 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_dx_set_single_constant_buffer()
2146 binding.offset = cmd->body.offsetInBytes; in vmw_cmd_dx_set_single_constant_buffer()
2147 binding.size = cmd->body.sizeInBytes; in vmw_cmd_dx_set_single_constant_buffer()
2148 binding.slot = cmd->body.slot; in vmw_cmd_dx_set_single_constant_buffer()
2181 if (cmd->body.slot >= SVGA3D_DX_MAX_CONSTBUFFERS) { in vmw_cmd_dx_set_constant_buffer_offset()
2183 (unsigned int) cmd->body.slot); in vmw_cmd_dx_set_constant_buffer_offset()
2189 cmd->body.slot, cmd->body.offsetInBytes); in vmw_cmd_dx_set_constant_buffer_offset()
2209 u32 num_sr_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_shader_res()
2212 if ((u64) cmd->body.startView + (u64) num_sr_view > in vmw_cmd_dx_set_shader_res()
2214 !vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type)) { in vmw_cmd_dx_set_shader_res()
2221 cmd->body.type - SVGA3D_SHADERTYPE_MIN, in vmw_cmd_dx_set_shader_res()
2223 cmd->body.startView); in vmw_cmd_dx_set_shader_res()
2248 if (!vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type)) { in vmw_cmd_dx_set_shader()
2250 (unsigned int) cmd->body.type); in vmw_cmd_dx_set_shader()
2254 if (cmd->body.shaderId != SVGA3D_INVALID_ID) { in vmw_cmd_dx_set_shader()
2255 res = vmw_shader_lookup(sw_context->man, cmd->body.shaderId, 0); in vmw_cmd_dx_set_shader()
2271 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_dx_set_shader()
2295 SVGA3dCmdDXSetVertexBuffers body; in vmw_cmd_dx_set_vertex_buffers() member
2304 num = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_vertex_buffers()
2306 if ((u64)num + (u64)cmd->body.startBuffer > in vmw_cmd_dx_set_vertex_buffers()
2325 binding.slot = i + cmd->body.startBuffer; in vmw_cmd_dx_set_vertex_buffers()
2357 &cmd->body.sid, &res); in vmw_cmd_dx_set_index_buffer()
2364 binding.offset = cmd->body.offset; in vmw_cmd_dx_set_index_buffer()
2365 binding.format = cmd->body.format; in vmw_cmd_dx_set_index_buffer()
2386 u32 num_rt_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_rendertargets()
2396 0, &cmd->body.depthStencilViewId, 1, 0); in vmw_cmd_dx_set_rendertargets()
2422 cmd->body.renderTargetViewId); in vmw_cmd_dx_clear_rendertarget_view()
2444 cmd->body.depthStencilViewId); in vmw_cmd_dx_clear_depthstencil_view()
2460 * same initial command body layout. in vmw_cmd_dx_view_define()
2513 SVGA3dCmdDXSetSOTargets body; in vmw_cmd_dx_set_so_targets() member
2522 num = (cmd->header.size - sizeof(cmd->body)) / sizeof(SVGA3dSoTarget); in vmw_cmd_dx_set_so_targets()
2558 * the same initial command body layout. in vmw_cmd_dx_so_define()
2645 union vmw_view_destroy body; in vmw_cmd_dx_view_remove() member
2654 ret = vmw_view_remove(sw_context->man, cmd->body.view_id, view_type, in vmw_cmd_dx_view_remove()
2692 ret = vmw_cotable_notify(res, cmd->body.shaderId); in vmw_cmd_dx_define_shader()
2697 cmd->body.shaderId, cmd->body.type, in vmw_cmd_dx_define_shader()
2720 ret = vmw_shader_remove(sw_context->man, cmd->body.shaderId, 0, in vmw_cmd_dx_destroy_shader()
2743 if (cmd->body.cid != SVGA3D_INVALID_ID) { in vmw_cmd_dx_bind_shader()
2746 user_context_converter, &cmd->body.cid, in vmw_cmd_dx_bind_shader()
2760 res = vmw_shader_lookup(vmw_context_res_man(ctx), cmd->body.shid, 0); in vmw_cmd_dx_bind_shader()
2774 &cmd->body.mobid, in vmw_cmd_dx_bind_shader()
2775 cmd->body.offsetInBytes); in vmw_cmd_dx_bind_shader()
2795 cmd->body.shaderResourceViewId); in vmw_cmd_dx_genmips()
2829 &cmd->body.srcSid, NULL); in vmw_cmd_dx_transfer_from_buffer()
2835 &cmd->body.destSid, NULL); in vmw_cmd_dx_transfer_from_buffer()
2857 &cmd->body.surface.sid, NULL); in vmw_cmd_intra_surface_copy()
2896 SVGA3dCmdDXClearUAViewUint body; in vmw_cmd_clear_uav_uint() member
2904 cmd->body.uaViewId); in vmw_cmd_clear_uav_uint()
2915 SVGA3dCmdDXClearUAViewFloat body; in vmw_cmd_clear_uav_float() member
2923 cmd->body.uaViewId); in vmw_cmd_clear_uav_float()
2934 SVGA3dCmdDXSetUAViews body; in vmw_cmd_set_uav() member
2936 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_uav()
2955 cmd->body.uavSpliceIndex); in vmw_cmd_set_uav()
2966 SVGA3dCmdDXSetCSUAViews body; in vmw_cmd_set_cs_uav() member
2968 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_cs_uav()
2987 cmd->body.startIndex); in vmw_cmd_set_cs_uav()
3000 SVGA3dCmdDXDefineStreamOutputWithMob body; in vmw_cmd_dx_define_streamoutput() member
3013 ret = vmw_cotable_notify(res, cmd->body.soid); in vmw_cmd_dx_define_streamoutput()
3018 cmd->body.soid, in vmw_cmd_dx_define_streamoutput()
3030 SVGA3dCmdDXDestroyStreamOutput body; in vmw_cmd_dx_destroy_streamoutput() member
3050 cmd->body.soid); in vmw_cmd_dx_destroy_streamoutput()
3054 return vmw_dx_streamoutput_remove(sw_context->man, cmd->body.soid, in vmw_cmd_dx_destroy_streamoutput()
3066 SVGA3dCmdDXBindStreamOutput body; in vmw_cmd_dx_bind_streamoutput() member
3079 cmd->body.soid); in vmw_cmd_dx_bind_streamoutput()
3085 vmw_dx_streamoutput_set_size(res, cmd->body.sizeInBytes); in vmw_cmd_dx_bind_streamoutput()
3095 &cmd->body.mobid, in vmw_cmd_dx_bind_streamoutput()
3096 cmd->body.offsetInBytes); in vmw_cmd_dx_bind_streamoutput()
3108 SVGA3dCmdDXSetStreamOutput body; in vmw_cmd_dx_set_streamoutput() member
3117 if (cmd->body.soid == SVGA3D_INVALID_ID) in vmw_cmd_dx_set_streamoutput()
3132 cmd->body.soid); in vmw_cmd_dx_set_streamoutput()
3161 SVGA3dCmdDXDrawIndexedInstancedIndirect body; in vmw_cmd_indexed_instanced_indirect() member
3169 &cmd->body.argsBufferSid, NULL); in vmw_cmd_indexed_instanced_indirect()
3178 SVGA3dCmdDXDrawInstancedIndirect body; in vmw_cmd_instanced_indirect() member
3186 &cmd->body.argsBufferSid, NULL); in vmw_cmd_instanced_indirect()
3195 SVGA3dCmdDXDispatchIndirect body; in vmw_cmd_dispatch_indirect() member
3203 &cmd->body.argsBufferSid, NULL); in vmw_cmd_dispatch_indirect()