• Home
  • Raw
  • Download

Lines Matching refs:xfer

1355 iris_flush_staging_region(struct pipe_transfer *xfer,  in iris_flush_staging_region()  argument
1358 if (!(xfer->usage & PIPE_MAP_WRITE)) in iris_flush_staging_region()
1361 struct iris_transfer *map = (void *) xfer; in iris_flush_staging_region()
1366 if (xfer->resource->target == PIPE_BUFFER) in iris_flush_staging_region()
1367 src_box.x += xfer->box.x % IRIS_MAP_BUFFER_ALIGNMENT; in iris_flush_staging_region()
1370 .x = xfer->box.x + flush_box->x, in iris_flush_staging_region()
1371 .y = xfer->box.y + flush_box->y, in iris_flush_staging_region()
1372 .z = xfer->box.z + flush_box->z, in iris_flush_staging_region()
1378 iris_copy_region(map->blorp, map->batch, xfer->resource, xfer->level, in iris_flush_staging_region()
1395 struct pipe_transfer *xfer = &map->base; in iris_map_copy_region() local
1396 struct pipe_box *box = &xfer->box; in iris_map_copy_region()
1397 struct iris_resource *res = (void *) xfer->resource; in iris_map_copy_region()
1399 unsigned extra = xfer->resource->target == PIPE_BUFFER ? in iris_map_copy_region()
1407 .nr_samples = xfer->resource->nr_samples, in iris_map_copy_region()
1408 .nr_storage_samples = xfer->resource->nr_storage_samples, in iris_map_copy_region()
1413 if (xfer->resource->target == PIPE_BUFFER) in iris_map_copy_region()
1425 xfer->stride = isl_surf_get_row_pitch_B(surf); in iris_map_copy_region()
1426 xfer->layer_stride = isl_surf_get_array_pitch(surf); in iris_map_copy_region()
1429 if (!(xfer->usage & PIPE_MAP_DISCARD_RANGE)) { in iris_map_copy_region()
1431 xfer->resource, xfer->level, box); in iris_map_copy_region()
1445 iris_bo_map(map->dbg, staging_bo, xfer->usage & MAP_FLAGS) + extra; in iris_map_copy_region()
1612 struct pipe_transfer *xfer = &map->base; in iris_unmap_s8() local
1613 const struct pipe_box *box = &xfer->box; in iris_unmap_s8()
1614 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_unmap_s8()
1617 if (xfer->usage & PIPE_MAP_WRITE) { in iris_unmap_s8()
1620 iris_bo_map(map->dbg, res->bo, (xfer->usage | MAP_RAW) & MAP_FLAGS); in iris_unmap_s8()
1624 get_image_offset_el(surf, xfer->level, box->z + s, &x0_el, &y0_el); in iris_unmap_s8()
1632 untiled_s8_map[s * xfer->layer_stride + y * xfer->stride + x]; in iris_unmap_s8()
1644 struct pipe_transfer *xfer = &map->base; in iris_map_s8() local
1645 const struct pipe_box *box = &xfer->box; in iris_map_s8()
1646 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_map_s8()
1649 xfer->stride = surf->row_pitch_B; in iris_map_s8()
1650 xfer->layer_stride = xfer->stride * box->height; in iris_map_s8()
1656 map->buffer = map->ptr = malloc(xfer->layer_stride * box->depth); in iris_map_s8()
1664 if (!(xfer->usage & PIPE_MAP_DISCARD_RANGE)) { in iris_map_s8()
1667 iris_bo_map(map->dbg, res->bo, (xfer->usage | MAP_RAW) & MAP_FLAGS); in iris_map_s8()
1671 get_image_offset_el(surf, xfer->level, box->z + s, &x0_el, &y0_el); in iris_map_s8()
1678 untiled_s8_map[s * xfer->layer_stride + y * xfer->stride + x] = in iris_map_s8()
1716 struct pipe_transfer *xfer = &map->base; in iris_unmap_tiled_memcpy() local
1717 const struct pipe_box *box = &xfer->box; in iris_unmap_tiled_memcpy()
1718 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_unmap_tiled_memcpy()
1723 if (xfer->usage & PIPE_MAP_WRITE) { in iris_unmap_tiled_memcpy()
1725 iris_bo_map(map->dbg, res->bo, (xfer->usage | MAP_RAW) & MAP_FLAGS); in iris_unmap_tiled_memcpy()
1729 tile_extents(surf, box, xfer->level, s, &x1, &x2, &y1, &y2); in iris_unmap_tiled_memcpy()
1731 void *ptr = map->ptr + s * xfer->layer_stride; in iris_unmap_tiled_memcpy()
1734 surf->row_pitch_B, xfer->stride, in iris_unmap_tiled_memcpy()
1745 struct pipe_transfer *xfer = &map->base; in iris_map_tiled_memcpy() local
1746 const struct pipe_box *box = &xfer->box; in iris_map_tiled_memcpy()
1747 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_map_tiled_memcpy()
1750 xfer->stride = ALIGN(surf->row_pitch_B, 16); in iris_map_tiled_memcpy()
1751 xfer->layer_stride = xfer->stride * box->height; in iris_map_tiled_memcpy()
1754 tile_extents(surf, box, xfer->level, 0, &x1, &x2, &y1, &y2); in iris_map_tiled_memcpy()
1761 os_malloc_aligned(xfer->layer_stride * box->depth, 16); in iris_map_tiled_memcpy()
1767 if (!(xfer->usage & PIPE_MAP_DISCARD_RANGE)) { in iris_map_tiled_memcpy()
1769 iris_bo_map(map->dbg, res->bo, (xfer->usage | MAP_RAW) & MAP_FLAGS); in iris_map_tiled_memcpy()
1773 tile_extents(surf, box, xfer->level, s, &x1, &x2, &y1, &y2); in iris_map_tiled_memcpy()
1776 void *ptr = map->ptr + s * xfer->layer_stride; in iris_map_tiled_memcpy()
1778 isl_memcpy_tiled_to_linear(x1, x2, y1, y2, ptr, src, xfer->stride, in iris_map_tiled_memcpy()
1790 struct pipe_transfer *xfer = &map->base; in iris_map_direct() local
1791 struct pipe_box *box = &xfer->box; in iris_map_direct()
1792 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_map_direct()
1794 void *ptr = iris_bo_map(map->dbg, res->bo, xfer->usage & MAP_FLAGS); in iris_map_direct()
1797 xfer->stride = 0; in iris_map_direct()
1798 xfer->layer_stride = 0; in iris_map_direct()
1808 get_image_offset_el(surf, xfer->level, box->z, &x0_el, &y0_el); in iris_map_direct()
1810 xfer->stride = isl_surf_get_row_pitch_B(surf); in iris_map_direct()
1811 xfer->layer_stride = isl_surf_get_array_pitch(surf); in iris_map_direct()
1813 map->ptr = ptr + (y0_el + box->y) * xfer->stride + (x0_el + box->x) * cpp; in iris_map_direct()
1879 struct pipe_transfer *xfer = &map->base; in iris_transfer_map() local
1887 pipe_resource_reference(&xfer->resource, resource); in iris_transfer_map()
1888 xfer->level = level; in iris_transfer_map()
1889 xfer->usage = usage; in iris_transfer_map()
1890 xfer->box = *box; in iris_transfer_map()
1891 *ptransfer = xfer; in iris_transfer_map()
1971 struct pipe_transfer *xfer, in iris_transfer_flush_region() argument
1975 struct iris_resource *res = (struct iris_resource *) xfer->resource; in iris_transfer_flush_region()
1976 struct iris_transfer *map = (void *) xfer; in iris_transfer_flush_region()
1979 iris_flush_staging_region(xfer, box); in iris_transfer_flush_region()
2012 iris_transfer_unmap(struct pipe_context *ctx, struct pipe_transfer *xfer) in iris_transfer_unmap() argument
2015 struct iris_transfer *map = (void *) xfer; in iris_transfer_unmap()
2017 if (!(xfer->usage & (PIPE_MAP_FLUSH_EXPLICIT | in iris_transfer_unmap()
2021 .width = xfer->box.width, in iris_transfer_unmap()
2022 .height = xfer->box.height, in iris_transfer_unmap()
2023 .depth = xfer->box.depth, in iris_transfer_unmap()
2025 iris_transfer_flush_region(ctx, xfer, &flush_box); in iris_transfer_unmap()
2031 pipe_resource_reference(&xfer->resource, NULL); in iris_transfer_unmap()