• Home
  • Raw
  • Download

Lines Matching refs:xfer

1953 iris_flush_staging_region(struct pipe_transfer *xfer,  in iris_flush_staging_region()  argument
1956 if (!(xfer->usage & PIPE_MAP_WRITE)) in iris_flush_staging_region()
1959 struct iris_transfer *map = (void *) xfer; in iris_flush_staging_region()
1964 if (xfer->resource->target == PIPE_BUFFER) in iris_flush_staging_region()
1965 src_box.x += xfer->box.x % IRIS_MAP_BUFFER_ALIGNMENT; in iris_flush_staging_region()
1968 .x = xfer->box.x + flush_box->x, in iris_flush_staging_region()
1969 .y = xfer->box.y + flush_box->y, in iris_flush_staging_region()
1970 .z = xfer->box.z + flush_box->z, in iris_flush_staging_region()
1976 iris_copy_region(map->blorp, map->batch, xfer->resource, xfer->level, in iris_flush_staging_region()
1993 struct pipe_transfer *xfer = &map->base.b; in iris_map_copy_region() local
1994 struct pipe_box *box = &xfer->box; in iris_map_copy_region()
1995 struct iris_resource *res = (void *) xfer->resource; in iris_map_copy_region()
1997 unsigned extra = xfer->resource->target == PIPE_BUFFER ? in iris_map_copy_region()
2005 .nr_samples = xfer->resource->nr_samples, in iris_map_copy_region()
2006 .nr_storage_samples = xfer->resource->nr_storage_samples, in iris_map_copy_region()
2011 if (xfer->resource->target == PIPE_BUFFER) in iris_map_copy_region()
2023 xfer->stride = isl_surf_get_row_pitch_B(surf); in iris_map_copy_region()
2024 xfer->layer_stride = isl_surf_get_array_pitch(surf); in iris_map_copy_region()
2027 if (!(xfer->usage & PIPE_MAP_DISCARD_RANGE)) { in iris_map_copy_region()
2029 xfer->resource, xfer->level, box); in iris_map_copy_region()
2045 iris_bo_map(map->dbg, staging_bo, xfer->usage & MAP_FLAGS) + extra; in iris_map_copy_region()
2113 struct pipe_transfer *xfer = &map->base.b; in iris_unmap_s8() local
2114 const struct pipe_box *box = &xfer->box; in iris_unmap_s8()
2115 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_unmap_s8()
2118 if (xfer->usage & PIPE_MAP_WRITE) { in iris_unmap_s8()
2121 iris_bo_map(map->dbg, res->bo, (xfer->usage | MAP_RAW) & MAP_FLAGS); in iris_unmap_s8()
2125 get_image_offset_el(surf, xfer->level, box->z + s, &x0_el, &y0_el); in iris_unmap_s8()
2133 untiled_s8_map[s * xfer->layer_stride + y * xfer->stride + x]; in iris_unmap_s8()
2145 struct pipe_transfer *xfer = &map->base.b; in iris_map_s8() local
2146 const struct pipe_box *box = &xfer->box; in iris_map_s8()
2147 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_map_s8()
2150 xfer->stride = surf->row_pitch_B; in iris_map_s8()
2151 xfer->layer_stride = xfer->stride * box->height; in iris_map_s8()
2157 map->buffer = map->ptr = malloc(xfer->layer_stride * box->depth); in iris_map_s8()
2165 if (!(xfer->usage & PIPE_MAP_DISCARD_RANGE)) { in iris_map_s8()
2168 iris_bo_map(map->dbg, res->bo, (xfer->usage | MAP_RAW) & MAP_FLAGS); in iris_map_s8()
2172 get_image_offset_el(surf, xfer->level, box->z + s, &x0_el, &y0_el); in iris_map_s8()
2179 untiled_s8_map[s * xfer->layer_stride + y * xfer->stride + x] = in iris_map_s8()
2217 struct pipe_transfer *xfer = &map->base.b; in iris_unmap_tiled_memcpy() local
2218 const struct pipe_box *box = &xfer->box; in iris_unmap_tiled_memcpy()
2219 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_unmap_tiled_memcpy()
2224 if (xfer->usage & PIPE_MAP_WRITE) { in iris_unmap_tiled_memcpy()
2226 iris_bo_map(map->dbg, res->bo, (xfer->usage | MAP_RAW) & MAP_FLAGS); in iris_unmap_tiled_memcpy()
2230 tile_extents(surf, box, xfer->level, s, &x1, &x2, &y1, &y2); in iris_unmap_tiled_memcpy()
2232 void *ptr = map->ptr + s * xfer->layer_stride; in iris_unmap_tiled_memcpy()
2235 surf->row_pitch_B, xfer->stride, in iris_unmap_tiled_memcpy()
2246 struct pipe_transfer *xfer = &map->base.b; in iris_map_tiled_memcpy() local
2247 const struct pipe_box *box = &xfer->box; in iris_map_tiled_memcpy()
2248 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_map_tiled_memcpy()
2251 xfer->stride = ALIGN(surf->row_pitch_B, 16); in iris_map_tiled_memcpy()
2252 xfer->layer_stride = xfer->stride * box->height; in iris_map_tiled_memcpy()
2255 tile_extents(surf, box, xfer->level, 0, &x1, &x2, &y1, &y2); in iris_map_tiled_memcpy()
2262 os_malloc_aligned(xfer->layer_stride * box->depth, 16); in iris_map_tiled_memcpy()
2268 if (!(xfer->usage & PIPE_MAP_DISCARD_RANGE)) { in iris_map_tiled_memcpy()
2270 iris_bo_map(map->dbg, res->bo, (xfer->usage | MAP_RAW) & MAP_FLAGS); in iris_map_tiled_memcpy()
2274 tile_extents(surf, box, xfer->level, s, &x1, &x2, &y1, &y2); in iris_map_tiled_memcpy()
2277 void *ptr = map->ptr + s * xfer->layer_stride; in iris_map_tiled_memcpy()
2279 isl_memcpy_tiled_to_linear(x1, x2, y1, y2, ptr, src, xfer->stride, in iris_map_tiled_memcpy()
2291 struct pipe_transfer *xfer = &map->base.b; in iris_map_direct() local
2292 struct pipe_box *box = &xfer->box; in iris_map_direct()
2293 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_map_direct()
2296 iris_bo_map(map->dbg, res->bo, xfer->usage & MAP_FLAGS); in iris_map_direct()
2299 xfer->stride = 0; in iris_map_direct()
2300 xfer->layer_stride = 0; in iris_map_direct()
2312 get_image_offset_el(surf, xfer->level, box->z, &x0_el, &y0_el); in iris_map_direct()
2317 xfer->stride = isl_surf_get_row_pitch_B(surf); in iris_map_direct()
2318 xfer->layer_stride = isl_surf_get_array_pitch(surf); in iris_map_direct()
2320 map->ptr = ptr + y0_el * xfer->stride + x0_el * cpp; in iris_map_direct()
2405 struct pipe_transfer *xfer = &map->base.b; in iris_transfer_map() local
2409 pipe_resource_reference(&xfer->resource, resource); in iris_transfer_map()
2410 xfer->level = level; in iris_transfer_map()
2411 xfer->usage = usage; in iris_transfer_map()
2412 xfer->box = *box; in iris_transfer_map()
2413 *ptransfer = xfer; in iris_transfer_map()
2488 struct pipe_transfer *xfer, in iris_transfer_flush_region() argument
2492 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_transfer_flush_region()
2493 struct iris_transfer *map = (void *) xfer; in iris_transfer_flush_region()
2496 iris_flush_staging_region(xfer, box); in iris_transfer_flush_region()
2509 iris_transfer_unmap(struct pipe_context *ctx, struct pipe_transfer *xfer) in iris_transfer_unmap() argument
2512 struct iris_transfer *map = (void *) xfer; in iris_transfer_unmap()
2514 if (!(xfer->usage & (PIPE_MAP_FLUSH_EXPLICIT | in iris_transfer_unmap()
2518 .width = xfer->box.width, in iris_transfer_unmap()
2519 .height = xfer->box.height, in iris_transfer_unmap()
2520 .depth = xfer->box.depth, in iris_transfer_unmap()
2522 iris_transfer_flush_region(ctx, xfer, &flush_box); in iris_transfer_unmap()
2528 pipe_resource_reference(&xfer->resource, NULL); in iris_transfer_unmap()