diff --git a/.pick_status.json b/.pick_status.json index 0407f5b43c8..038009f80ab 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -164,7 +164,7 @@ "description": "radv: fix missing texel scale for unaligned linear SDMA copies", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "4b73d7e8174faf7cc9bfa351befc637ffe2e53c1", "notes": null 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;