Lines Matching full:body
164 SVGA3dCmdSurfaceDMA body; member
174 SVGA3dCmdDefineSurface body; member
182 SVGA3dCmdDestroySurface body; member
239 cmd->header.size = sizeof(cmd->body); in vmw_surface_destroy_encode()
240 cmd->body.sid = id; in vmw_surface_destroy_encode()
259 cmd_len = sizeof(cmd->body) + srf->metadata.num_sizes * in vmw_surface_define_encode()
264 cmd->body.sid = srf->res.id; in vmw_surface_define_encode()
270 cmd->body.surfaceFlags = (SVGA3dSurface1Flags)srf->metadata.flags; in vmw_surface_define_encode()
271 cmd->body.format = srf->metadata.format; in vmw_surface_define_encode()
273 cmd->body.face[i].numMipLevels = srf->metadata.mip_levels[i]; in vmw_surface_define_encode()
307 SVGA3dCmdSurfaceDMA *body = &cmd->body; in vmw_surface_dma_encode() local
314 header->size = sizeof(*body) + sizeof(*cb) + sizeof(*suffix); in vmw_surface_dma_encode()
316 body->guest.ptr = *ptr; in vmw_surface_dma_encode()
317 body->guest.ptr.offset += cur_offset->bo_offset; in vmw_surface_dma_encode()
318 body->guest.pitch = vmw_surface_calculate_pitch(desc, cur_size); in vmw_surface_dma_encode()
319 body->host.sid = srf->res.id; in vmw_surface_dma_encode()
320 body->host.face = cur_offset->face; in vmw_surface_dma_encode()
321 body->host.mipmap = cur_offset->mip; in vmw_surface_dma_encode()
322 body->transfer = ((to_surface) ? SVGA3D_WRITE_HOST_VRAM : in vmw_surface_dma_encode()
337 body->guest.pitch); in vmw_surface_dma_encode()
1159 SVGA3dCmdDefineGBSurface body; in vmw_gb_surface_create() member
1163 SVGA3dCmdDefineGBSurface_v2 body; in vmw_gb_surface_create() member
1167 SVGA3dCmdDefineGBSurface_v3 body; in vmw_gb_surface_create() member
1171 SVGA3dCmdDefineGBSurface_v4 body; in vmw_gb_surface_create() member
1191 cmd_len = sizeof(cmd4->body); in vmw_gb_surface_create()
1195 cmd_len = sizeof(cmd3->body); in vmw_gb_surface_create()
1200 cmd_len = sizeof(cmd2->body); in vmw_gb_surface_create()
1204 cmd_len = sizeof(cmd->body); in vmw_gb_surface_create()
1220 cmd4->body.sid = srf->res.id; in vmw_gb_surface_create()
1221 cmd4->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1222 cmd4->body.format = metadata->format; in vmw_gb_surface_create()
1223 cmd4->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1224 cmd4->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1225 cmd4->body.multisamplePattern = metadata->multisample_pattern; in vmw_gb_surface_create()
1226 cmd4->body.qualityLevel = metadata->quality_level; in vmw_gb_surface_create()
1227 cmd4->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1228 cmd4->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1229 cmd4->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1230 cmd4->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1231 cmd4->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1232 cmd4->body.bufferByteStride = metadata->buffer_byte_stride; in vmw_gb_surface_create()
1236 cmd3->body.sid = srf->res.id; in vmw_gb_surface_create()
1237 cmd3->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1238 cmd3->body.format = metadata->format; in vmw_gb_surface_create()
1239 cmd3->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1240 cmd3->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1241 cmd3->body.multisamplePattern = metadata->multisample_pattern; in vmw_gb_surface_create()
1242 cmd3->body.qualityLevel = metadata->quality_level; in vmw_gb_surface_create()
1243 cmd3->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1244 cmd3->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1245 cmd3->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1246 cmd3->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1247 cmd3->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1251 cmd2->body.sid = srf->res.id; in vmw_gb_surface_create()
1252 cmd2->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1253 cmd2->body.format = metadata->format; in vmw_gb_surface_create()
1254 cmd2->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1255 cmd2->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1256 cmd2->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1257 cmd2->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1258 cmd2->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1259 cmd2->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1260 cmd2->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1264 cmd->body.sid = srf->res.id; in vmw_gb_surface_create()
1265 cmd->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1266 cmd->body.format = metadata->format; in vmw_gb_surface_create()
1267 cmd->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1268 cmd->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1269 cmd->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1270 cmd->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1271 cmd->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1272 cmd->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1293 SVGA3dCmdBindGBSurface body; in vmw_gb_surface_bind() member
1297 SVGA3dCmdUpdateGBSurface body; in vmw_gb_surface_bind() member
1311 cmd1->header.size = sizeof(cmd1->body); in vmw_gb_surface_bind()
1312 cmd1->body.sid = res->id; in vmw_gb_surface_bind()
1313 cmd1->body.mobid = bo->resource->start; in vmw_gb_surface_bind()
1317 cmd2->header.size = sizeof(cmd2->body); in vmw_gb_surface_bind()
1318 cmd2->body.sid = res->id; in vmw_gb_surface_bind()
1342 SVGA3dCmdReadbackGBSurface body; in vmw_gb_surface_unbind() member
1346 SVGA3dCmdInvalidateGBSurface body; in vmw_gb_surface_unbind() member
1350 SVGA3dCmdBindGBSurface body; in vmw_gb_surface_unbind() member
1366 cmd1->header.size = sizeof(cmd1->body); in vmw_gb_surface_unbind()
1367 cmd1->body.sid = res->id; in vmw_gb_surface_unbind()
1372 cmd2->header.size = sizeof(cmd2->body); in vmw_gb_surface_unbind()
1373 cmd2->body.sid = res->id; in vmw_gb_surface_unbind()
1378 cmd3->header.size = sizeof(cmd3->body); in vmw_gb_surface_unbind()
1379 cmd3->body.sid = res->id; in vmw_gb_surface_unbind()
1380 cmd3->body.mobid = SVGA3D_INVALID_ID; in vmw_gb_surface_unbind()
1405 SVGA3dCmdDestroyGBSurface body; in vmw_gb_surface_destroy() member
1422 cmd->header.size = sizeof(cmd->body); in vmw_gb_surface_destroy()
1423 cmd->body.sid = res->id; in vmw_gb_surface_destroy()
1959 SVGA3dCmdDXUpdateSubResource body; in vmw_surface_dirty_sync() member
1963 SVGA3dCmdUpdateGBImage body; in vmw_surface_dirty_sync() member
1998 cmd1->header.size = sizeof(cmd1->body); in vmw_surface_dirty_sync()
1999 cmd1->body.sid = res->id; in vmw_surface_dirty_sync()
2000 cmd1->body.subResource = i; in vmw_surface_dirty_sync()
2001 cmd1->body.box = *box; in vmw_surface_dirty_sync()
2005 cmd2->header.size = sizeof(cmd2->body); in vmw_surface_dirty_sync()
2006 cmd2->body.image.sid = res->id; in vmw_surface_dirty_sync()
2007 cmd2->body.image.face = i / cache->num_mip_levels; in vmw_surface_dirty_sync()
2008 cmd2->body.image.mipmap = i - in vmw_surface_dirty_sync()
2009 (cache->num_mip_levels * cmd2->body.image.face); in vmw_surface_dirty_sync()
2010 cmd2->body.box = *box; in vmw_surface_dirty_sync()
2095 SVGA3dCmdReadbackGBSurface body; in vmw_surface_clean() member
2104 cmd->header.size = sizeof(cmd->body); in vmw_surface_clean()
2105 cmd->body.sid = res->id; in vmw_surface_clean()