Lines Matching refs: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()
1044 SVGA3dCmdDefineGBSurface body; in vmw_gb_surface_create() member
1048 SVGA3dCmdDefineGBSurface_v2 body; in vmw_gb_surface_create() member
1052 SVGA3dCmdDefineGBSurface_v3 body; in vmw_gb_surface_create() member
1056 SVGA3dCmdDefineGBSurface_v4 body; in vmw_gb_surface_create() member
1076 cmd_len = sizeof(cmd4->body); in vmw_gb_surface_create()
1080 cmd_len = sizeof(cmd3->body); in vmw_gb_surface_create()
1085 cmd_len = sizeof(cmd2->body); in vmw_gb_surface_create()
1089 cmd_len = sizeof(cmd->body); in vmw_gb_surface_create()
1105 cmd4->body.sid = srf->res.id; in vmw_gb_surface_create()
1106 cmd4->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1107 cmd4->body.format = metadata->format; in vmw_gb_surface_create()
1108 cmd4->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1109 cmd4->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1110 cmd4->body.multisamplePattern = metadata->multisample_pattern; in vmw_gb_surface_create()
1111 cmd4->body.qualityLevel = metadata->quality_level; in vmw_gb_surface_create()
1112 cmd4->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1113 cmd4->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1114 cmd4->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1115 cmd4->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1116 cmd4->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1117 cmd4->body.bufferByteStride = metadata->buffer_byte_stride; in vmw_gb_surface_create()
1121 cmd3->body.sid = srf->res.id; in vmw_gb_surface_create()
1122 cmd3->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1123 cmd3->body.format = metadata->format; in vmw_gb_surface_create()
1124 cmd3->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1125 cmd3->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1126 cmd3->body.multisamplePattern = metadata->multisample_pattern; in vmw_gb_surface_create()
1127 cmd3->body.qualityLevel = metadata->quality_level; in vmw_gb_surface_create()
1128 cmd3->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1129 cmd3->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1130 cmd3->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1131 cmd3->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1132 cmd3->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1136 cmd2->body.sid = srf->res.id; in vmw_gb_surface_create()
1137 cmd2->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1138 cmd2->body.format = metadata->format; in vmw_gb_surface_create()
1139 cmd2->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1140 cmd2->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1141 cmd2->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1142 cmd2->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1143 cmd2->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1144 cmd2->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1145 cmd2->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1149 cmd->body.sid = srf->res.id; in vmw_gb_surface_create()
1150 cmd->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1151 cmd->body.format = metadata->format; in vmw_gb_surface_create()
1152 cmd->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1153 cmd->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1154 cmd->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1155 cmd->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1156 cmd->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1157 cmd->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1178 SVGA3dCmdBindGBSurface body; in vmw_gb_surface_bind() member
1182 SVGA3dCmdUpdateGBSurface body; in vmw_gb_surface_bind() member
1196 cmd1->header.size = sizeof(cmd1->body); in vmw_gb_surface_bind()
1197 cmd1->body.sid = res->id; in vmw_gb_surface_bind()
1198 cmd1->body.mobid = bo->resource->start; in vmw_gb_surface_bind()
1202 cmd2->header.size = sizeof(cmd2->body); in vmw_gb_surface_bind()
1203 cmd2->body.sid = res->id; in vmw_gb_surface_bind()
1227 SVGA3dCmdReadbackGBSurface body; in vmw_gb_surface_unbind() member
1231 SVGA3dCmdInvalidateGBSurface body; in vmw_gb_surface_unbind() member
1235 SVGA3dCmdBindGBSurface body; in vmw_gb_surface_unbind() member
1251 cmd1->header.size = sizeof(cmd1->body); in vmw_gb_surface_unbind()
1252 cmd1->body.sid = res->id; in vmw_gb_surface_unbind()
1257 cmd2->header.size = sizeof(cmd2->body); in vmw_gb_surface_unbind()
1258 cmd2->body.sid = res->id; in vmw_gb_surface_unbind()
1263 cmd3->header.size = sizeof(cmd3->body); in vmw_gb_surface_unbind()
1264 cmd3->body.sid = res->id; in vmw_gb_surface_unbind()
1265 cmd3->body.mobid = SVGA3D_INVALID_ID; in vmw_gb_surface_unbind()
1290 SVGA3dCmdDestroyGBSurface body; in vmw_gb_surface_destroy() member
1307 cmd->header.size = sizeof(cmd->body); in vmw_gb_surface_destroy()
1308 cmd->body.sid = res->id; in vmw_gb_surface_destroy()
1842 SVGA3dCmdDXUpdateSubResource body; in vmw_surface_dirty_sync() member
1846 SVGA3dCmdUpdateGBImage body; in vmw_surface_dirty_sync() member
1881 cmd1->header.size = sizeof(cmd1->body); in vmw_surface_dirty_sync()
1882 cmd1->body.sid = res->id; in vmw_surface_dirty_sync()
1883 cmd1->body.subResource = i; in vmw_surface_dirty_sync()
1884 cmd1->body.box = *box; in vmw_surface_dirty_sync()
1888 cmd2->header.size = sizeof(cmd2->body); in vmw_surface_dirty_sync()
1889 cmd2->body.image.sid = res->id; in vmw_surface_dirty_sync()
1890 cmd2->body.image.face = i / cache->num_mip_levels; in vmw_surface_dirty_sync()
1891 cmd2->body.image.mipmap = i - in vmw_surface_dirty_sync()
1892 (cache->num_mip_levels * cmd2->body.image.face); in vmw_surface_dirty_sync()
1893 cmd2->body.box = *box; in vmw_surface_dirty_sync()
1978 SVGA3dCmdReadbackGBSurface body; in vmw_surface_clean() member
1987 cmd->header.size = sizeof(cmd->body); in vmw_surface_clean()
1988 cmd->body.sid = res->id; in vmw_surface_clean()