Lines Matching full:body
167 SVGA3dCmdSurfaceDMA body; member
177 SVGA3dCmdDefineSurface body; member
185 SVGA3dCmdDestroySurface body; member
242 cmd->header.size = sizeof(cmd->body); in vmw_surface_destroy_encode()
243 cmd->body.sid = id; in vmw_surface_destroy_encode()
262 cmd_len = sizeof(cmd->body) + srf->metadata.num_sizes * in vmw_surface_define_encode()
267 cmd->body.sid = srf->res.id; in vmw_surface_define_encode()
273 cmd->body.surfaceFlags = (SVGA3dSurface1Flags)srf->metadata.flags; in vmw_surface_define_encode()
274 cmd->body.format = srf->metadata.format; in vmw_surface_define_encode()
276 cmd->body.face[i].numMipLevels = srf->metadata.mip_levels[i]; in vmw_surface_define_encode()
310 SVGA3dCmdSurfaceDMA *body = &cmd->body; in vmw_surface_dma_encode() local
317 header->size = sizeof(*body) + sizeof(*cb) + sizeof(*suffix); in vmw_surface_dma_encode()
319 body->guest.ptr = *ptr; in vmw_surface_dma_encode()
320 body->guest.ptr.offset += cur_offset->bo_offset; in vmw_surface_dma_encode()
321 body->guest.pitch = vmw_surface_calculate_pitch(desc, cur_size); in vmw_surface_dma_encode()
322 body->host.sid = srf->res.id; in vmw_surface_dma_encode()
323 body->host.face = cur_offset->face; in vmw_surface_dma_encode()
324 body->host.mipmap = cur_offset->mip; in vmw_surface_dma_encode()
325 body->transfer = ((to_surface) ? SVGA3D_WRITE_HOST_VRAM : in vmw_surface_dma_encode()
340 body->guest.pitch); in vmw_surface_dma_encode()
1042 SVGA3dCmdDefineGBSurface body; in vmw_gb_surface_create() member
1046 SVGA3dCmdDefineGBSurface_v2 body; in vmw_gb_surface_create() member
1050 SVGA3dCmdDefineGBSurface_v3 body; in vmw_gb_surface_create() member
1054 SVGA3dCmdDefineGBSurface_v4 body; in vmw_gb_surface_create() member
1074 cmd_len = sizeof(cmd4->body); in vmw_gb_surface_create()
1078 cmd_len = sizeof(cmd3->body); in vmw_gb_surface_create()
1083 cmd_len = sizeof(cmd2->body); in vmw_gb_surface_create()
1087 cmd_len = sizeof(cmd->body); in vmw_gb_surface_create()
1103 cmd4->body.sid = srf->res.id; in vmw_gb_surface_create()
1104 cmd4->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1105 cmd4->body.format = metadata->format; in vmw_gb_surface_create()
1106 cmd4->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1107 cmd4->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1108 cmd4->body.multisamplePattern = metadata->multisample_pattern; in vmw_gb_surface_create()
1109 cmd4->body.qualityLevel = metadata->quality_level; in vmw_gb_surface_create()
1110 cmd4->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1111 cmd4->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1112 cmd4->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1113 cmd4->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1114 cmd4->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1115 cmd4->body.bufferByteStride = metadata->buffer_byte_stride; in vmw_gb_surface_create()
1119 cmd3->body.sid = srf->res.id; in vmw_gb_surface_create()
1120 cmd3->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1121 cmd3->body.format = metadata->format; in vmw_gb_surface_create()
1122 cmd3->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1123 cmd3->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1124 cmd3->body.multisamplePattern = metadata->multisample_pattern; in vmw_gb_surface_create()
1125 cmd3->body.qualityLevel = metadata->quality_level; in vmw_gb_surface_create()
1126 cmd3->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1127 cmd3->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1128 cmd3->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1129 cmd3->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1130 cmd3->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1134 cmd2->body.sid = srf->res.id; in vmw_gb_surface_create()
1135 cmd2->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1136 cmd2->body.format = metadata->format; in vmw_gb_surface_create()
1137 cmd2->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1138 cmd2->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1139 cmd2->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1140 cmd2->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1141 cmd2->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1142 cmd2->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1143 cmd2->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1147 cmd->body.sid = srf->res.id; in vmw_gb_surface_create()
1148 cmd->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1149 cmd->body.format = metadata->format; in vmw_gb_surface_create()
1150 cmd->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1151 cmd->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1152 cmd->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1153 cmd->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1154 cmd->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1155 cmd->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1176 SVGA3dCmdBindGBSurface body; in vmw_gb_surface_bind() member
1180 SVGA3dCmdUpdateGBSurface body; in vmw_gb_surface_bind() member
1194 cmd1->header.size = sizeof(cmd1->body); in vmw_gb_surface_bind()
1195 cmd1->body.sid = res->id; in vmw_gb_surface_bind()
1196 cmd1->body.mobid = bo->resource->start; in vmw_gb_surface_bind()
1200 cmd2->header.size = sizeof(cmd2->body); in vmw_gb_surface_bind()
1201 cmd2->body.sid = res->id; in vmw_gb_surface_bind()
1225 SVGA3dCmdReadbackGBSurface body; in vmw_gb_surface_unbind() member
1229 SVGA3dCmdInvalidateGBSurface body; in vmw_gb_surface_unbind() member
1233 SVGA3dCmdBindGBSurface body; in vmw_gb_surface_unbind() member
1249 cmd1->header.size = sizeof(cmd1->body); in vmw_gb_surface_unbind()
1250 cmd1->body.sid = res->id; in vmw_gb_surface_unbind()
1255 cmd2->header.size = sizeof(cmd2->body); in vmw_gb_surface_unbind()
1256 cmd2->body.sid = res->id; in vmw_gb_surface_unbind()
1261 cmd3->header.size = sizeof(cmd3->body); in vmw_gb_surface_unbind()
1262 cmd3->body.sid = res->id; in vmw_gb_surface_unbind()
1263 cmd3->body.mobid = SVGA3D_INVALID_ID; in vmw_gb_surface_unbind()
1288 SVGA3dCmdDestroyGBSurface body; in vmw_gb_surface_destroy() member
1305 cmd->header.size = sizeof(cmd->body); in vmw_gb_surface_destroy()
1306 cmd->body.sid = res->id; in vmw_gb_surface_destroy()
1838 SVGA3dCmdDXUpdateSubResource body; in vmw_surface_dirty_sync() member
1842 SVGA3dCmdUpdateGBImage body; in vmw_surface_dirty_sync() member
1877 cmd1->header.size = sizeof(cmd1->body); in vmw_surface_dirty_sync()
1878 cmd1->body.sid = res->id; in vmw_surface_dirty_sync()
1879 cmd1->body.subResource = i; in vmw_surface_dirty_sync()
1880 cmd1->body.box = *box; in vmw_surface_dirty_sync()
1884 cmd2->header.size = sizeof(cmd2->body); in vmw_surface_dirty_sync()
1885 cmd2->body.image.sid = res->id; in vmw_surface_dirty_sync()
1886 cmd2->body.image.face = i / cache->num_mip_levels; in vmw_surface_dirty_sync()
1887 cmd2->body.image.mipmap = i - in vmw_surface_dirty_sync()
1888 (cache->num_mip_levels * cmd2->body.image.face); in vmw_surface_dirty_sync()
1889 cmd2->body.box = *box; in vmw_surface_dirty_sync()
1974 SVGA3dCmdReadbackGBSurface body; in vmw_surface_clean() member
1983 cmd->header.size = sizeof(cmd->body); in vmw_surface_clean()
1984 cmd->body.sid = res->id; in vmw_surface_clean()