Lines Matching defs:dst
428 struct v3dv_image *dst,
771 struct v3dv_image *dst,
776 if (dst->vk.tiling == VK_IMAGE_TILING_LINEAR)
780 * to be copied. We only need to check the dst format because the spec
783 if (dst->vk.format == VK_FORMAT_D24_UNORM_S8_UINT) {
795 * checks for "dst image complete" requires some changes, since it is
799 if (vk_format_is_compressed(dst->vk.format) !=
813 uint32_t dst_width = u_minify(dst->vk.extent.width, dst_mip_level);
814 uint32_t dst_height = u_minify(dst->vk.extent.height, dst_mip_level);
830 assert(dst->vk.samples == src->vk.samples);
831 if (dst->vk.samples > VK_SAMPLE_COUNT_1_BIT) {
832 assert(dst->vk.samples == VK_SAMPLE_COUNT_4_BIT);
849 assert(dst->cpp == src->cpp);
852 dst->cpp, NULL);
855 const uint32_t layer_count = dst->vk.image_type != VK_IMAGE_TYPE_3D ?
862 const uint32_t base_dst_layer = dst->vk.image_type != VK_IMAGE_TYPE_3D ?
866 dst->mem->bo->offset +
867 v3dv_layer_offset(dst, dst_mip_level, base_dst_layer + i);
872 const struct v3d_resource_slice *dst_slice = &dst->slices[dst_mip_level];
877 dst->mem->bo->handle,
881 dst->cpp,
900 struct v3dv_image *dst,
906 !v3dv_meta_can_use_tlb(dst, ®ion->dstOffset, &fb_format)) {
931 (dst->vk.image_type != VK_IMAGE_TYPE_3D ?
934 if (dst->vk.image_type != VK_IMAGE_TYPE_3D)
946 const uint32_t block_w = vk_format_get_blockwidth(dst->vk.format);
947 const uint32_t block_h = vk_format_get_blockheight(dst->vk.format);
959 v3dv_X(job->device, meta_emit_copy_image_rcl)(job, dst, src, &framebuffer, region);
1025 struct v3dv_image *dst,
1031 const uint32_t dst_block_w = vk_format_get_blockwidth(dst->vk.format);
1032 const uint32_t dst_block_h = vk_format_get_blockheight(dst->vk.format);
1068 assert(src->cpp == dst->cpp);
1082 /* Create image views of the src/dst images that we can interpret in
1093 dst = create_image_alias(cmd_buffer, dst,
1155 dst, format,
1172 V3DV_FROM_HANDLE(v3dv_image, dst, info->dstImage);
1174 assert(src->vk.samples == dst->vk.samples);
1179 if (copy_image_tfu(cmd_buffer, dst, src, &info->pRegions[i]))
1181 if (copy_image_tlb(cmd_buffer, dst, src, &info->pRegions[i]))
1183 if (copy_image_blit(cmd_buffer, dst, src, &info->pRegions[i]))
2811 struct v3dv_image *dst,
2815 assert(dst->vk.samples == VK_SAMPLE_COUNT_1_BIT);
2819 if (src->vk.format != dst->vk.format)
2823 if (dst->vk.tiling == VK_IMAGE_TILING_LINEAR)
2835 const uint32_t dst_width = u_minify(dst->vk.extent.width, dst_mip_level);
2836 const uint32_t dst_height = u_minify(dst->vk.extent.height, dst_mip_level);
2851 if (dst->vk.format == VK_FORMAT_D24_UNORM_S8_UINT) {
2865 dst->cpp, NULL);
2874 if (dst->vk.image_type == VK_IMAGE_TYPE_3D) {
2895 /* No Z scaling for 3D images (for non-3D images both src and dst must
2913 dst->mem->bo->offset + v3dv_layer_offset(dst, dst_mip_level, dst_layer);
2917 const struct v3d_resource_slice *dst_slice = &dst->slices[dst_mip_level];
2922 dst->mem->bo->handle,
2926 dst->cpp,
2975 * shader with clamp code that depends on both the src and dst formats, so
3793 struct v3dv_image *dst,
3810 assert(dst->vk.tiling != VK_IMAGE_TILING_LINEAR ||
3871 const uint32_t dst_block_w = vk_format_get_blockwidth(dst->vk.format);
3872 const uint32_t dst_block_h = vk_format_get_blockheight(dst->vk.format);
3876 u_minify(DIV_ROUND_UP(dst->vk.extent.width * src_block_w, dst_block_w),
3879 u_minify(DIV_ROUND_UP(dst->vk.extent.height * src_block_h, dst_block_h),
3906 if (dst->vk.image_type != VK_IMAGE_TYPE_3D) {
3973 dst->vk.samples, src->vk.samples,
4041 .image = v3dv_image_to_handle(dst),
4042 .viewType = v3dv_image_type_to_view_type(dst->vk.image_type),
4146 * with the dst image contents before the blit. The exception is when we
4221 V3DV_FROM_HANDLE(v3dv_image, dst, pBlitImageInfo->dstImage);
4228 assert(dst->vk.samples == VK_SAMPLE_COUNT_1_BIT &&
4232 assert(!vk_format_is_compressed(dst->vk.format));
4237 if (blit_tfu(cmd_buffer, dst, src, &pBlitImageInfo->pRegions[i]))
4240 dst, dst->vk.format,
4255 struct v3dv_image *dst,
4260 !v3dv_meta_can_use_tlb(dst, ®ion->dstOffset, NULL)) {
4270 if (dst->vk.image_type != VK_IMAGE_TYPE_3D)
4281 const uint32_t block_w = vk_format_get_blockwidth(dst->vk.format);
4282 const uint32_t block_h = vk_format_get_blockheight(dst->vk.format);
4299 v3dv_X(job->device, meta_emit_resolve_image_rcl)(job, dst, src,
4308 struct v3dv_image *dst,
4332 dst, dst->vk.format,
4345 V3DV_FROM_HANDLE(v3dv_image, dst, info->dstImage);
4352 assert(dst->vk.samples == VK_SAMPLE_COUNT_1_BIT);
4357 if (resolve_image_tlb(cmd_buffer, dst, src, &info->pRegions[i]))
4359 if (resolve_image_blit(cmd_buffer, dst, src, &info->pRegions[i]))