• Home
  • Raw
  • Download

Lines Matching refs:body

55 		__type body;                                                  \
737 cmd->header.size = sizeof(cmd->body); in vmw_rebind_all_dx_query()
738 cmd->body.cid = ctx_res->id; in vmw_rebind_all_dx_query()
739 cmd->body.mobid = dx_query_mob->base.resource->start; in vmw_rebind_all_dx_query()
846 &cmd->body, NULL); in vmw_cmd_cid_check()
888 if (cmd->body.type >= SVGA3D_RT_MAX) { in vmw_cmd_set_render_target_check()
890 (unsigned int) cmd->body.type); in vmw_cmd_set_render_target_check()
896 &cmd->body.cid, &ctx); in vmw_cmd_set_render_target_check()
902 &cmd->body.target.sid, &res); in vmw_cmd_set_render_target_check()
917 binding.slot = cmd->body.type; in vmw_cmd_set_render_target_check()
935 &cmd->body.src.sid, NULL); in vmw_cmd_surface_copy_check()
941 &cmd->body.dest.sid, NULL); in vmw_cmd_surface_copy_check()
954 &cmd->body.src, NULL); in vmw_cmd_buffer_copy_check()
960 &cmd->body.dest, NULL); in vmw_cmd_buffer_copy_check()
973 &cmd->body.srcSid, NULL); in vmw_cmd_pred_copy_check()
979 &cmd->body.dstSid, NULL); in vmw_cmd_pred_copy_check()
992 &cmd->body.src.sid, NULL); in vmw_cmd_stretch_blt_check()
998 &cmd->body.dest.sid, NULL); in vmw_cmd_stretch_blt_check()
1010 &cmd->body.srcImage.sid, NULL); in vmw_cmd_blt_surf_screen_check()
1022 &cmd->body.sid, NULL); in vmw_cmd_present_check()
1275 if (cmd->body.type < SVGA3D_QUERYTYPE_MIN || in vmw_cmd_dx_define_query()
1276 cmd->body.type >= SVGA3D_QUERYTYPE_MAX) in vmw_cmd_dx_define_query()
1280 ret = vmw_cotable_notify(cotable_res, cmd->body.queryId); in vmw_cmd_dx_define_query()
1310 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_dx_bind_query()
1337 &cmd->body.cid, NULL); in vmw_cmd_begin_gb_query()
1361 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_begin_query()
1362 gb_cmd.body.type = cmd->body.type; in vmw_cmd_begin_query()
1370 &cmd->body.cid, NULL); in vmw_cmd_begin_query()
1393 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_end_gb_query()
1426 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_end_query()
1427 gb_cmd.body.type = cmd->body.type; in vmw_cmd_end_query()
1428 gb_cmd.body.mobid = cmd->body.guestResult.gmrId; in vmw_cmd_end_query()
1429 gb_cmd.body.offset = cmd->body.guestResult.offset; in vmw_cmd_end_query()
1440 &cmd->body.guestResult, &vmw_bo); in vmw_cmd_end_query()
1469 ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid, in vmw_cmd_wait_gb_query()
1500 gb_cmd.body.cid = cmd->body.cid; in vmw_cmd_wait_query()
1501 gb_cmd.body.type = cmd->body.type; in vmw_cmd_wait_query()
1502 gb_cmd.body.mobid = cmd->body.guestResult.gmrId; in vmw_cmd_wait_query()
1503 gb_cmd.body.offset = cmd->body.guestResult.offset; in vmw_cmd_wait_query()
1514 &cmd->body.guestResult, &vmw_bo); in vmw_cmd_wait_query()
1534 suffix = (SVGA3dCmdSurfaceDMASuffix *)((unsigned long) &cmd->body + in vmw_cmd_dma()
1544 &cmd->body.guest.ptr, &vmw_bo); in vmw_cmd_dma()
1550 if (unlikely(cmd->body.guest.ptr.offset > bo_size)) { in vmw_cmd_dma()
1555 bo_size -= cmd->body.guest.ptr.offset; in vmw_cmd_dma()
1559 dirty = (cmd->body.transfer == SVGA3D_WRITE_HOST_VRAM) ? in vmw_cmd_dma()
1563 &cmd->body.host.sid, NULL); in vmw_cmd_dma()
1594 maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl); in vmw_cmd_draw()
1596 if (unlikely(cmd->body.numVertexDecls > maxnum)) { in vmw_cmd_draw()
1601 for (i = 0; i < cmd->body.numVertexDecls; ++i, ++decl) { in vmw_cmd_draw()
1610 maxnum = (header->size - sizeof(cmd->body) - in vmw_cmd_draw()
1611 cmd->body.numVertexDecls * sizeof(*decl)) / sizeof(*range); in vmw_cmd_draw()
1612 if (unlikely(cmd->body.numRanges > maxnum)) { in vmw_cmd_draw()
1618 for (i = 0; i < cmd->body.numRanges; ++i, ++range) { in vmw_cmd_draw()
1646 &cmd->body.cid, &ctx); in vmw_cmd_tex_state()
1695 SVGAFifoCmdDefineGMRFB body; in vmw_cmd_check_define_gmrfb() member
1698 return vmw_translate_guest_ptr(dev_priv, sw_context, &cmd->body.ptr, in vmw_cmd_check_define_gmrfb()
1789 user_surface_converter, &cmd->body.sid, in vmw_cmd_bind_gb_surface()
1790 &cmd->body.mobid, 0); in vmw_cmd_bind_gb_surface()
1809 &cmd->body.image.sid, NULL); in vmw_cmd_update_gb_image()
1828 &cmd->body.sid, NULL); in vmw_cmd_update_gb_surface()
1847 &cmd->body.image.sid, NULL); in vmw_cmd_readback_gb_image()
1867 &cmd->body.sid, NULL); in vmw_cmd_readback_gb_surface()
1887 &cmd->body.image.sid, NULL); in vmw_cmd_invalidate_gb_image()
1907 &cmd->body.sid, NULL); in vmw_cmd_invalidate_gb_surface()
1930 &cmd->body.cid, &ctx); in vmw_cmd_shader_define()
1937 size = cmd->header.size - sizeof(cmd->body); in vmw_cmd_shader_define()
1939 cmd->body.shid, cmd + 1, cmd->body.type, in vmw_cmd_shader_define()
1969 &cmd->body.cid, &ctx); in vmw_cmd_shader_destroy()
1976 ret = vmw_shader_remove(vmw_context_res_man(ctx), cmd->body.shid, in vmw_cmd_shader_destroy()
1977 cmd->body.type, &sw_context->staged_cmd_res); in vmw_cmd_shader_destroy()
2006 if (!vmw_shadertype_is_valid(VMW_SM_LEGACY, cmd->body.type)) { in vmw_cmd_set_shader()
2008 (unsigned int) cmd->body.type); in vmw_cmd_set_shader()
2014 &cmd->body.cid, &ctx); in vmw_cmd_set_shader()
2021 if (cmd->body.shid != SVGA3D_INVALID_ID) { in vmw_cmd_set_shader()
2028 cmd->body.shid, cmd->body.type); in vmw_cmd_set_shader()
2038 &cmd->body.shid), in vmw_cmd_set_shader()
2048 user_shader_converter, &cmd->body.shid, in vmw_cmd_set_shader()
2061 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_set_shader()
2085 &cmd->body.cid, NULL); in vmw_cmd_set_shader_const()
2110 user_shader_converter, &cmd->body.shid, in vmw_cmd_bind_gb_shader()
2111 &cmd->body.mobid, cmd->body.offsetInBytes); in vmw_cmd_bind_gb_shader()
2140 &cmd->body.sid, &res); in vmw_cmd_dx_set_single_constant_buffer()
2144 if (!vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type) || in vmw_cmd_dx_set_single_constant_buffer()
2145 cmd->body.slot >= SVGA3D_DX_MAX_CONSTBUFFERS) { in vmw_cmd_dx_set_single_constant_buffer()
2147 (unsigned int) cmd->body.type, in vmw_cmd_dx_set_single_constant_buffer()
2148 (unsigned int) cmd->body.slot); in vmw_cmd_dx_set_single_constant_buffer()
2155 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_dx_set_single_constant_buffer()
2156 binding.offset = cmd->body.offsetInBytes; in vmw_cmd_dx_set_single_constant_buffer()
2157 binding.size = cmd->body.sizeInBytes; in vmw_cmd_dx_set_single_constant_buffer()
2158 binding.slot = cmd->body.slot; in vmw_cmd_dx_set_single_constant_buffer()
2181 u32 num_sr_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_shader_res()
2184 if ((u64) cmd->body.startView + (u64) num_sr_view > in vmw_cmd_dx_set_shader_res()
2186 !vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type)) { in vmw_cmd_dx_set_shader_res()
2193 cmd->body.type - SVGA3D_SHADERTYPE_MIN, in vmw_cmd_dx_set_shader_res()
2195 cmd->body.startView); in vmw_cmd_dx_set_shader_res()
2220 if (!vmw_shadertype_is_valid(dev_priv->sm_type, cmd->body.type)) { in vmw_cmd_dx_set_shader()
2222 (unsigned int) cmd->body.type); in vmw_cmd_dx_set_shader()
2226 if (cmd->body.shaderId != SVGA3D_INVALID_ID) { in vmw_cmd_dx_set_shader()
2227 res = vmw_shader_lookup(sw_context->man, cmd->body.shaderId, 0); in vmw_cmd_dx_set_shader()
2242 binding.shader_slot = cmd->body.type - SVGA3D_SHADERTYPE_MIN; in vmw_cmd_dx_set_shader()
2266 SVGA3dCmdDXSetVertexBuffers body; in vmw_cmd_dx_set_vertex_buffers() member
2275 num = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_vertex_buffers()
2277 if ((u64)num + (u64)cmd->body.startBuffer > in vmw_cmd_dx_set_vertex_buffers()
2296 binding.slot = i + cmd->body.startBuffer; in vmw_cmd_dx_set_vertex_buffers()
2328 &cmd->body.sid, &res); in vmw_cmd_dx_set_index_buffer()
2335 binding.offset = cmd->body.offset; in vmw_cmd_dx_set_index_buffer()
2336 binding.format = cmd->body.format; in vmw_cmd_dx_set_index_buffer()
2357 u32 num_rt_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_rendertargets()
2367 0, &cmd->body.depthStencilViewId, 1, 0); in vmw_cmd_dx_set_rendertargets()
2393 cmd->body.renderTargetViewId); in vmw_cmd_dx_clear_rendertarget_view()
2415 cmd->body.depthStencilViewId); in vmw_cmd_dx_clear_depthstencil_view()
2484 SVGA3dCmdDXSetSOTargets body; in vmw_cmd_dx_set_so_targets() member
2493 num = (cmd->header.size - sizeof(cmd->body)) / sizeof(SVGA3dSoTarget); in vmw_cmd_dx_set_so_targets()
2616 union vmw_view_destroy body; in vmw_cmd_dx_view_remove() member
2625 ret = vmw_view_remove(sw_context->man, cmd->body.view_id, view_type, in vmw_cmd_dx_view_remove()
2663 ret = vmw_cotable_notify(res, cmd->body.shaderId); in vmw_cmd_dx_define_shader()
2668 cmd->body.shaderId, cmd->body.type, in vmw_cmd_dx_define_shader()
2691 ret = vmw_shader_remove(sw_context->man, cmd->body.shaderId, 0, in vmw_cmd_dx_destroy_shader()
2714 if (cmd->body.cid != SVGA3D_INVALID_ID) { in vmw_cmd_dx_bind_shader()
2717 user_context_converter, &cmd->body.cid, in vmw_cmd_dx_bind_shader()
2731 res = vmw_shader_lookup(vmw_context_res_man(ctx), cmd->body.shid, 0); in vmw_cmd_dx_bind_shader()
2745 &cmd->body.mobid, in vmw_cmd_dx_bind_shader()
2746 cmd->body.offsetInBytes); in vmw_cmd_dx_bind_shader()
2766 cmd->body.shaderResourceViewId); in vmw_cmd_dx_genmips()
2800 &cmd->body.srcSid, NULL); in vmw_cmd_dx_transfer_from_buffer()
2806 &cmd->body.destSid, NULL); in vmw_cmd_dx_transfer_from_buffer()
2828 &cmd->body.surface.sid, NULL); in vmw_cmd_intra_surface_copy()
2867 SVGA3dCmdDXClearUAViewUint body; in vmw_cmd_clear_uav_uint() member
2875 cmd->body.uaViewId); in vmw_cmd_clear_uav_uint()
2886 SVGA3dCmdDXClearUAViewFloat body; in vmw_cmd_clear_uav_float() member
2894 cmd->body.uaViewId); in vmw_cmd_clear_uav_float()
2905 SVGA3dCmdDXSetUAViews body; in vmw_cmd_set_uav() member
2907 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_uav()
2926 cmd->body.uavSpliceIndex); in vmw_cmd_set_uav()
2937 SVGA3dCmdDXSetCSUAViews body; in vmw_cmd_set_cs_uav() member
2939 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_cs_uav()
2958 cmd->body.startIndex); in vmw_cmd_set_cs_uav()
2971 SVGA3dCmdDXDefineStreamOutputWithMob body; in vmw_cmd_dx_define_streamoutput() member
2984 ret = vmw_cotable_notify(res, cmd->body.soid); in vmw_cmd_dx_define_streamoutput()
2989 cmd->body.soid, in vmw_cmd_dx_define_streamoutput()
3001 SVGA3dCmdDXDestroyStreamOutput body; in vmw_cmd_dx_destroy_streamoutput() member
3021 cmd->body.soid); in vmw_cmd_dx_destroy_streamoutput()
3025 return vmw_dx_streamoutput_remove(sw_context->man, cmd->body.soid, in vmw_cmd_dx_destroy_streamoutput()
3037 SVGA3dCmdDXBindStreamOutput body; in vmw_cmd_dx_bind_streamoutput() member
3050 cmd->body.soid); in vmw_cmd_dx_bind_streamoutput()
3056 vmw_dx_streamoutput_set_size(res, cmd->body.sizeInBytes); in vmw_cmd_dx_bind_streamoutput()
3066 &cmd->body.mobid, in vmw_cmd_dx_bind_streamoutput()
3067 cmd->body.offsetInBytes); in vmw_cmd_dx_bind_streamoutput()
3079 SVGA3dCmdDXSetStreamOutput body; in vmw_cmd_dx_set_streamoutput() member
3088 if (cmd->body.soid == SVGA3D_INVALID_ID) in vmw_cmd_dx_set_streamoutput()
3103 cmd->body.soid); in vmw_cmd_dx_set_streamoutput()
3132 SVGA3dCmdDXDrawIndexedInstancedIndirect body; in vmw_cmd_indexed_instanced_indirect() member
3140 &cmd->body.argsBufferSid, NULL); in vmw_cmd_indexed_instanced_indirect()
3149 SVGA3dCmdDXDrawInstancedIndirect body; in vmw_cmd_instanced_indirect() member
3157 &cmd->body.argsBufferSid, NULL); in vmw_cmd_instanced_indirect()
3166 SVGA3dCmdDXDispatchIndirect body; in vmw_cmd_dispatch_indirect() member
3174 &cmd->body.argsBufferSid, NULL); in vmw_cmd_dispatch_indirect()