Lines Matching defs:region
1589 VkBufferImageCopy2 region = info->pRegions[r];
1598 dzn_image_align_extent(dst_image, ®ion.imageExtent);
1601 dzn_image_get_copy_loc(dst_image, ®ion.imageSubresource, aspect, l);
1603 dzn_buffer_get_copy_loc(src_buffer, dst_image->vk.format, ®ion, aspect, l);
1613 .right = region.imageExtent.width,
1614 .bottom = region.imageExtent.height,
1615 .back = region.imageExtent.depth,
1619 region.imageOffset.x,
1620 region.imageOffset.y,
1621 region.imageOffset.z,
1634 for (uint32_t z = 0; z < region.imageExtent.depth; z += blkd) {
1635 for (uint32_t y = 0; y < region.imageExtent.height; y += blkh) {
1640 ®ion, &src_buf_loc,
1644 src_box.right = src_x + region.imageExtent.width;
1647 region.imageOffset.x,
1648 region.imageOffset.y + y,
1649 region.imageOffset.z + z,
1668 VkBufferImageCopy2 region = info->pRegions[r];
1677 dzn_image_align_extent(src_image, ®ion.imageExtent);
1680 dzn_image_get_copy_loc(src_image, ®ion.imageSubresource, aspect, l);
1682 dzn_buffer_get_copy_loc(dst_buffer, src_image->vk.format, ®ion, aspect, l);
1689 .left = (UINT)region.imageOffset.x,
1690 .top = (UINT)region.imageOffset.y,
1691 .front = (UINT)region.imageOffset.z,
1692 .right = (UINT)(region.imageOffset.x + region.imageExtent.width),
1693 .bottom = (UINT)(region.imageOffset.y + region.imageExtent.height),
1694 .back = (UINT)(region.imageOffset.z + region.imageExtent.depth),
1704 .left = (UINT)region.imageOffset.x,
1705 .right = (UINT)(region.imageOffset.x + region.imageExtent.width),
1709 for (uint32_t z = 0; z < region.imageExtent.depth; z += blkd) {
1710 src_box.front = region.imageOffset.z + z;
1713 for (uint32_t y = 0; y < region.imageExtent.height; y += blkh) {
1718 ®ion, &dst_buf_loc,
1721 src_box.top = region.imageOffset.y + y;
1749 VkImageCopy2 region = info->pRegions[r];
1750 dzn_image_align_extent(src, ®ion.extent);
1752 const VkImageSubresourceLayers *src_subres = ®ion.srcSubresource;
1753 const VkImageSubresourceLayers *dst_subres = ®ion.dstSubresource;
1767 uint32_t dst_z = region.dstOffset.z, src_z = region.srcOffset.z;
1768 uint32_t depth = region.extent.depth;
1793 .left = (UINT)MAX2(region.srcOffset.x, 0),
1794 .top = (UINT)MAX2(region.srcOffset.y, 0),
1796 .right = (UINT)region.srcOffset.x + region.extent.width,
1797 .bottom = (UINT)region.srcOffset.y + region.extent.height,
1803 region.dstOffset.x,
1804 region.dstOffset.y,
1812 tmp_desc->Width = region.extent.width;
1813 tmp_desc->Height = region.extent.height;
1841 tmp_desc->Width = DIV_ROUND_UP(region.extent.width, src_blkw) * dst_blkw;
1843 tmp_desc->Height = DIV_ROUND_UP(region.extent.height, src_blkh) * dst_blkh;
1854 tmp_loc->PlacedFootprint.Footprint.Depth = region.extent.depth;
1867 region.dstOffset.x,
1868 region.dstOffset.y,
2118 const VkImageBlit2 *region = &info->pRegions[r];
2122 dzn_foreach_aspect(aspect, region->srcSubresource.aspectMask) {
2125 src, info->srcImageLayout, ®ion->srcSubresource,
2126 dst, info->dstImageLayout, ®ion->dstSubresource,
2129 aspect, ®ion->srcSubresource,
2132 src, ®ion->srcSubresource, region->srcOffsets,
2133 dst, ®ion->dstSubresource, region->dstOffsets,
2137 region->dstOffsets[1].z > region->dstOffsets[0].z ?
2138 region->dstOffsets[1].z - region->dstOffsets[0].z :
2139 region->dstOffsets[0].z - region->dstOffsets[1].z;
2141 region->srcOffsets[1].z > region->srcOffsets[0].z ?
2142 region->srcOffsets[1].z - region->srcOffsets[0].z :
2143 region->srcOffsets[0].z - region->srcOffsets[1].z;
2145 uint32_t layer_count = dzn_get_layer_count(src, ®ion->srcSubresource);
2146 uint32_t dst_level = region->dstSubresource.mipLevel;
2149 if (region->srcOffsets[0].z > region->srcOffsets[1].z)
2152 src_is_3d ? (float)region->srcOffsets[0].z + (src_slice_step * 0.5f) : 0;
2155 dst_is_3d ? region->dstOffsets[0].z : region->dstSubresource.baseArrayLayer;
2156 if (region->dstOffsets[0].z > region->dstOffsets[1].z)
2159 uint32_t dst_slice_step = region->dstOffsets[0].z < region->dstOffsets[1].z ?
2177 src, info->srcImageLayout, ®ion->srcSubresource,
2178 dst, info->dstImageLayout, ®ion->dstSubresource,
2193 const VkImageResolve2 *region = &info->pRegions[r];
2195 dzn_foreach_aspect(aspect, region->srcSubresource.aspectMask) {
2198 src, info->srcImageLayout, ®ion->srcSubresource,
2199 dst, info->dstImageLayout, ®ion->dstSubresource,
2202 ®ion->srcSubresource,
2207 .x = region->srcOffset.x,
2208 .y = region->srcOffset.y,
2211 .x = (int32_t)(region->srcOffset.x + region->extent.width),
2212 .y = (int32_t)(region->srcOffset.y + region->extent.height),
2217 .x = region->dstOffset.x,
2218 .y = region->dstOffset.y,
2221 .x = (int32_t)(region->dstOffset.x + region->extent.width),
2222 .y = (int32_t)(region->dstOffset.y + region->extent.height),
2227 src, ®ion->srcSubresource, src_offset,
2228 dst, ®ion->dstSubresource, dst_offset,
2231 uint32_t layer_count = dzn_get_layer_count(src, ®ion->srcSubresource);
2236 dst, aspect, region->dstSubresource.mipLevel,
2237 region->dstSubresource.baseArrayLayer + layer);
2243 src, info->srcImageLayout, ®ion->srcSubresource,
2244 dst, info->dstImageLayout, ®ion->dstSubresource,
2963 const VkBufferCopy2 *region = info->pRegions + i;
2965 ID3D12GraphicsCommandList1_CopyBufferRegion(cmdbuf->cmdlist, dst_buffer->res, region->dstOffset,
2966 src_buffer->res, region->srcOffset,
2967 region->size);
2978 const VkBufferImageCopy2 *region = info->pRegions + i;
2980 dzn_foreach_aspect(aspect, region->imageSubresource.aspectMask) {
2981 for (uint32_t l = 0; l < region->imageSubresource.layerCount; l++)
2994 const VkBufferImageCopy2 *region = info->pRegions + i;
2996 dzn_foreach_aspect(aspect, region->imageSubresource.aspectMask) {
2997 for (uint32_t l = 0; l < region->imageSubresource.layerCount; l++)
3017 const VkImageCopy2 *region = &info->pRegions[i];
3019 dzn_foreach_aspect(aspect, region->srcSubresource.aspectMask) {
3020 assert(aspect & region->dstSubresource.aspectMask);
3037 const VkImageCopy2 *region = info->pRegions + i;
3038 if (region->srcOffset.x != 0 || region->srcOffset.y != 0 ||
3039 region->extent.width != u_minify(src->vk.extent.width, region->srcSubresource.mipLevel) ||
3040 region->extent.height != u_minify(src->vk.extent.height, region->srcSubresource.mipLevel) ||
3041 region->dstOffset.x != 0 || region->dstOffset.y != 0 ||
3042 region->extent.width != u_minify(dst->vk.extent.width, region->dstSubresource.mipLevel) ||
3043 region->extent.height != u_minify(dst->vk.extent.height, region->dstSubresource.mipLevel))
3120 const VkImageCopy2 *region = &info->pRegions[i];
3127 tmp_desc.Width = region->extent.width;
3128 tmp_desc.Height = region->extent.height;
3134 max_size = MAX2(max_size, region_size * region->extent.depth);
3149 const VkImageCopy2 *region = &info->pRegions[i];
3151 dzn_foreach_aspect(aspect, region->srcSubresource.aspectMask) {
3152 for (uint32_t l = 0; l < region->srcSubresource.layerCount; l++)