diff --git a/src/amd/vulkan/radv_sdma.c b/src/amd/vulkan/radv_sdma.c index e99c0fda029..7f74bbb2f82 100644 --- a/src/amd/vulkan/radv_sdma.c +++ b/src/amd/vulkan/radv_sdma.c @@ -521,6 +521,7 @@ radv_sdma_emit_copy_linear_sub_window(const struct radv_device *device, struct r /* Adjust offset/extent for 96-bits formats because SDMA expects a power of two bpp. */ const uint32_t texel_scale = src->texel_scale == 1 ? dst->texel_scale : src->texel_scale; + assert(texel_scale); src_off.x *= texel_scale; dst_off.x *= texel_scale; ext.width *= texel_scale; @@ -729,6 +730,7 @@ radv_sdma_copy_buffer_image_unaligned(const struct radv_device *device, struct r .blk_h = img.blk_h, .pitch = info.aligned_row_pitch * img.blk_w, .slice_pitch = info.aligned_row_pitch * img.blk_w * info.extent_vertical_blocks * img.blk_h, + .texel_scale = buf->texel_scale, }; VkExtent3D extent = base_extent;