Lines Matching full:body
56 __type body; \
724 cmd->header.size = sizeof(cmd->body); in vmw_rebind_all_dx_query()
725 cmd->body.cid = ctx_res->id; in vmw_rebind_all_dx_query()
726 cmd->body.mobid = dx_query_mob->tbo.resource->start; in vmw_rebind_all_dx_query()
833 &cmd->body, NULL); in vmw_cmd_cid_check()
875 if (cmd->body.type >= SVGA3D_RT_MAX) { in vmw_cmd_set_render_target_check()
877 (unsigned int) cmd->body.type); in vmw_cmd_set_render_target_check()
883 &cmd->body.cid, &ctx); in vmw_cmd_set_render_target_check()
889 &cmd->body.target.sid, &res); in vmw_cmd_set_render_target_check()
904 binding.slot = cmd->body.type; in vmw_cmd_set_render_target_check()
922 &cmd->body.src.sid, NULL); in vmw_cmd_surface_copy_check()
928 &cmd->body.dest.sid, NULL); in vmw_cmd_surface_copy_check()
941 &cmd->body.src, NULL); in vmw_cmd_buffer_copy_check()
947 &cmd->body.dest, NULL); in vmw_cmd_buffer_copy_check()
960 &cmd->body.srcSid, NULL); in vmw_cmd_pred_copy_check()
966 &cmd->body.dstSid, NULL); in vmw_cmd_pred_copy_check()
979 &cmd->body.src.sid, NULL); in vmw_cmd_stretch_blt_check()
985 &cmd->body.dest.sid, NULL); in vmw_cmd_stretch_blt_check()
997 &cmd->body.srcImage.sid, NULL); in vmw_cmd_blt_surf_screen_check()
1009 &cmd->body.sid, NULL); in vmw_cmd_present_check()
1265 if (cmd->body.type < SVGA3D_QUERYTYPE_MIN || in vmw_cmd_dx_define_query()
1266 cmd->body.type >= SVGA3D_QUERYTYPE_MAX) in vmw_cmd_dx_define_query()
1272 ret = vmw_cotable_notify(cotable_res, cmd->body.queryId); in vmw_cmd_dx_define_query()
1302 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_dx_bind_query()
1329 &cmd->body.cid, NULL); in vmw_cmd_begin_gb_query()
1353 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_begin_query()
1354 gb_cmd.body.type = cmd->body.type; in vmw_cmd_begin_query()
1362 &cmd->body.cid, NULL); in vmw_cmd_begin_query()
1385 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_end_gb_query()
1418 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_end_query()
1419 gb_cmd.body.type = cmd->body.type; in vmw_cmd_end_query()
1420 gb_cmd.body.mobid = cmd->body.guestResult.gmrId; in vmw_cmd_end_query()
1421 gb_cmd.body.offset = cmd->body.guestResult.offset; in vmw_cmd_end_query()
1432 &cmd->body.guestResult, &vmw_bo); in vmw_cmd_end_query()
1461 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_wait_gb_query()
1492 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_wait_query()
1493 gb_cmd.body.type = cmd->body.type; in vmw_cmd_wait_query()
1494 gb_cmd.body.mobid = cmd->body.guestResult.gmrId; in vmw_cmd_wait_query()
1495 gb_cmd.body.offset = cmd->body.guestResult.offset; in vmw_cmd_wait_query()
1506 &cmd->body.guestResult, &vmw_bo); in vmw_cmd_wait_query()
1526 suffix = (SVGA3dCmdSurfaceDMASuffix *)((unsigned long) &cmd->body + in vmw_cmd_dma()
1536 &cmd->body.guest.ptr, &vmw_bo); in vmw_cmd_dma()
1542 if (unlikely(cmd->body.guest.ptr.offset > bo_size)) { in vmw_cmd_dma()
1547 bo_size -= cmd->body.guest.ptr.offset; in vmw_cmd_dma()
1551 dirty = (cmd->body.transfer == SVGA3D_WRITE_HOST_VRAM) ? in vmw_cmd_dma()
1555 &cmd->body.host.sid, NULL); in vmw_cmd_dma()
1586 maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl); in vmw_cmd_draw()
1588 if (unlikely(cmd->body.numVertexDecls > maxnum)) { in vmw_cmd_draw()
1593 for (i = 0; i < cmd->body.numVertexDecls; ++i, ++decl) { in vmw_cmd_draw()
1602 maxnum = (header->size - sizeof(cmd->body) - in vmw_cmd_draw()
1603 cmd->body.numVertexDecls * sizeof(*decl)) / sizeof(*range); in vmw_cmd_draw()
1604 if (unlikely(cmd->body.numRanges > maxnum)) { in vmw_cmd_draw()
1610 for (i = 0; i < cmd->body.numRanges; ++i, ++range) { in vmw_cmd_draw()
1638 &cmd->body.cid, &ctx); in vmw_cmd_tex_state()
1687 SVGAFifoCmdDefineGMRFB body; in vmw_cmd_check_define_gmrfb() member
1690 return vmw_translate_guest_ptr(dev_priv, sw_context, &cmd->body.ptr, in vmw_cmd_check_define_gmrfb()
1781 user_surface_converter, &cmd->body.sid, in vmw_cmd_bind_gb_surface()
1782 &cmd->body.mobid, 0); in vmw_cmd_bind_gb_surface()
1801 &cmd->body.image.sid, NULL); in vmw_cmd_update_gb_image()
1820 &cmd->body.sid, NULL); in vmw_cmd_update_gb_surface()
1839 &cmd->body.image.sid, NULL); in vmw_cmd_readback_gb_image()
1859 &cmd->body.sid, NULL); in vmw_cmd_readback_gb_surface()
1879 &cmd->body.image.sid, NULL); in vmw_cmd_invalidate_gb_image()
1899 &cmd->body.sid, NULL); in vmw_cmd_invalidate_gb_surface()
1922 &cmd->body.cid, &ctx); in vmw_cmd_shader_define()
1929 size = cmd->header.size - sizeof(cmd->body); in vmw_cmd_shader_define()
1931 cmd->body.shid, cmd + 1, cmd->body.type, in vmw_cmd_shader_define()
1961 &cmd->body.cid, &ctx); in vmw_cmd_shader_destroy()
1968 ret = vmw_shader_remove(vmw_context_res_man(ctx), cmd->body.shid, in vmw_cmd_shader_destroy()
1969 cmd->body.type, &sw_context->staged_cmd_res); in vmw_cmd_shader_destroy()
1998 if (!vmw_shadertype_is_valid(VMW_SM_LEGACY, cmd->body.type)) { in vmw_cmd_set_shader()
2000 (unsigned int) cmd->body.type); in vmw_cmd_set_shader()
2006 &cmd->body.cid, &ctx); in vmw_cmd_set_shader()
2013 if (cmd->body.shid != SVGA3D_INVALID_ID) { in vmw_cmd_set_shader()
2020 cmd->body.shid, cmd->body.type); in vmw_cmd_set_shader()
2031 &cmd->body.shid), in vmw_cmd_set_shader()
2041 user_shader_converter, &cmd->body.shid, in vmw_cmd_set_shader()
2054 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_set_shader()
2078 &cmd->body.cid, NULL); in vmw_cmd_set_shader_const()
2103 user_shader_converter, &cmd->body.shid, in vmw_cmd_bind_gb_shader()
2104 &cmd->body.mobid, cmd->body.offsetInBytes); in vmw_cmd_bind_gb_shader()
2133 &cmd->body.sid, &res); in vmw_cmd_dx_set_single_constant_buffer()
2137 if (!vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type) || in vmw_cmd_dx_set_single_constant_buffer()
2138 cmd->body.slot >= SVGA3D_DX_MAX_CONSTBUFFERS) { in vmw_cmd_dx_set_single_constant_buffer()
2140 (unsigned int) cmd->body.type, in vmw_cmd_dx_set_single_constant_buffer()
2141 (unsigned int) cmd->body.slot); in vmw_cmd_dx_set_single_constant_buffer()
2148 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_dx_set_single_constant_buffer()
2149 binding.offset = cmd->body.offsetInBytes; in vmw_cmd_dx_set_single_constant_buffer()
2150 binding.size = cmd->body.sizeInBytes; in vmw_cmd_dx_set_single_constant_buffer()
2151 binding.slot = cmd->body.slot; in vmw_cmd_dx_set_single_constant_buffer()
2184 if (cmd->body.slot >= SVGA3D_DX_MAX_CONSTBUFFERS) { in vmw_cmd_dx_set_constant_buffer_offset()
2186 (unsigned int) cmd->body.slot); in vmw_cmd_dx_set_constant_buffer_offset()
2192 cmd->body.slot, cmd->body.offsetInBytes); in vmw_cmd_dx_set_constant_buffer_offset()
2212 u32 num_sr_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_shader_res()
2215 if ((u64) cmd->body.startView + (u64) num_sr_view > in vmw_cmd_dx_set_shader_res()
2217 !vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type)) { in vmw_cmd_dx_set_shader_res()
2224 cmd->body.type - SVGA3D_SHADERTYPE_MIN, in vmw_cmd_dx_set_shader_res()
2226 cmd->body.startView); in vmw_cmd_dx_set_shader_res()
2251 if (!vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type)) { in vmw_cmd_dx_set_shader()
2253 (unsigned int) cmd->body.type); in vmw_cmd_dx_set_shader()
2257 if (cmd->body.shaderId != SVGA3D_INVALID_ID) { in vmw_cmd_dx_set_shader()
2258 res = vmw_shader_lookup(sw_context->man, cmd->body.shaderId, 0); in vmw_cmd_dx_set_shader()
2274 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_dx_set_shader()
2298 SVGA3dCmdDXSetVertexBuffers body; in vmw_cmd_dx_set_vertex_buffers() member
2307 num = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_vertex_buffers()
2309 if ((u64)num + (u64)cmd->body.startBuffer > in vmw_cmd_dx_set_vertex_buffers()
2328 binding.slot = i + cmd->body.startBuffer; in vmw_cmd_dx_set_vertex_buffers()
2360 &cmd->body.sid, &res); in vmw_cmd_dx_set_index_buffer()
2367 binding.offset = cmd->body.offset; in vmw_cmd_dx_set_index_buffer()
2368 binding.format = cmd->body.format; in vmw_cmd_dx_set_index_buffer()
2389 u32 num_rt_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_rendertargets()
2399 0, &cmd->body.depthStencilViewId, 1, 0); in vmw_cmd_dx_set_rendertargets()
2425 cmd->body.renderTargetViewId); in vmw_cmd_dx_clear_rendertarget_view()
2447 cmd->body.depthStencilViewId); in vmw_cmd_dx_clear_depthstencil_view()
2463 * same initial command body layout. in vmw_cmd_dx_view_define()
2518 SVGA3dCmdDXSetSOTargets body; in vmw_cmd_dx_set_so_targets() member
2527 num = (cmd->header.size - sizeof(cmd->body)) / sizeof(SVGA3dSoTarget); in vmw_cmd_dx_set_so_targets()
2563 * the same initial command body layout. in vmw_cmd_dx_so_define()
2650 union vmw_view_destroy body; in vmw_cmd_dx_view_remove() member
2659 ret = vmw_view_remove(sw_context->man, cmd->body.view_id, view_type, in vmw_cmd_dx_view_remove()
2699 ret = vmw_cotable_notify(res, cmd->body.shaderId); in vmw_cmd_dx_define_shader()
2704 cmd->body.shaderId, cmd->body.type, in vmw_cmd_dx_define_shader()
2727 ret = vmw_shader_remove(sw_context->man, cmd->body.shaderId, 0, in vmw_cmd_dx_destroy_shader()
2750 if (cmd->body.cid != SVGA3D_INVALID_ID) { in vmw_cmd_dx_bind_shader()
2753 user_context_converter, &cmd->body.cid, in vmw_cmd_dx_bind_shader()
2767 res = vmw_shader_lookup(vmw_context_res_man(ctx), cmd->body.shid, 0); in vmw_cmd_dx_bind_shader()
2781 &cmd->body.mobid, in vmw_cmd_dx_bind_shader()
2782 cmd->body.offsetInBytes); in vmw_cmd_dx_bind_shader()
2802 cmd->body.shaderResourceViewId); in vmw_cmd_dx_genmips()
2836 &cmd->body.srcSid, NULL); in vmw_cmd_dx_transfer_from_buffer()
2842 &cmd->body.destSid, NULL); in vmw_cmd_dx_transfer_from_buffer()
2864 &cmd->body.surface.sid, NULL); in vmw_cmd_intra_surface_copy()
2903 SVGA3dCmdDXClearUAViewUint body; in vmw_cmd_clear_uav_uint() member
2911 cmd->body.uaViewId); in vmw_cmd_clear_uav_uint()
2922 SVGA3dCmdDXClearUAViewFloat body; in vmw_cmd_clear_uav_float() member
2930 cmd->body.uaViewId); in vmw_cmd_clear_uav_float()
2941 SVGA3dCmdDXSetUAViews body; in vmw_cmd_set_uav() member
2943 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_uav()
2962 cmd->body.uavSpliceIndex); in vmw_cmd_set_uav()
2973 SVGA3dCmdDXSetCSUAViews body; in vmw_cmd_set_cs_uav() member
2975 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_cs_uav()
2994 cmd->body.startIndex); in vmw_cmd_set_cs_uav()
3007 SVGA3dCmdDXDefineStreamOutputWithMob body; in vmw_cmd_dx_define_streamoutput() member
3022 ret = vmw_cotable_notify(res, cmd->body.soid); in vmw_cmd_dx_define_streamoutput()
3027 cmd->body.soid, in vmw_cmd_dx_define_streamoutput()
3039 SVGA3dCmdDXDestroyStreamOutput body; in vmw_cmd_dx_destroy_streamoutput() member
3059 cmd->body.soid); in vmw_cmd_dx_destroy_streamoutput()
3063 return vmw_dx_streamoutput_remove(sw_context->man, cmd->body.soid, in vmw_cmd_dx_destroy_streamoutput()
3075 SVGA3dCmdDXBindStreamOutput body; in vmw_cmd_dx_bind_streamoutput() member
3088 cmd->body.soid); in vmw_cmd_dx_bind_streamoutput()
3094 vmw_dx_streamoutput_set_size(res, cmd->body.sizeInBytes); in vmw_cmd_dx_bind_streamoutput()
3104 &cmd->body.mobid, in vmw_cmd_dx_bind_streamoutput()
3105 cmd->body.offsetInBytes); in vmw_cmd_dx_bind_streamoutput()
3117 SVGA3dCmdDXSetStreamOutput body; in vmw_cmd_dx_set_streamoutput() member
3126 if (cmd->body.soid == SVGA3D_INVALID_ID) in vmw_cmd_dx_set_streamoutput()
3141 cmd->body.soid); in vmw_cmd_dx_set_streamoutput()
3170 SVGA3dCmdDXDrawIndexedInstancedIndirect body; in vmw_cmd_indexed_instanced_indirect() member
3178 &cmd->body.argsBufferSid, NULL); in vmw_cmd_indexed_instanced_indirect()
3187 SVGA3dCmdDXDrawInstancedIndirect body; in vmw_cmd_instanced_indirect() member
3195 &cmd->body.argsBufferSid, NULL); in vmw_cmd_instanced_indirect()
3204 SVGA3dCmdDXDispatchIndirect body; in vmw_cmd_dispatch_indirect() member
3212 &cmd->body.argsBufferSid, NULL); in vmw_cmd_dispatch_indirect()