pvr: propagate image samples when doing a blit from DS surface

Enabling DS resolve attachment entails a blit for a ZLS subtile region, in such
case the TQ needs to know the number of samples in the source surface in order to
pack the texture state.

Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37512>
This commit is contained in:
Luigi Santivetti 2025-09-08 13:34:25 +01:00 committed by Marge Bot
parent 9ab273f5ab
commit a48857be7b

View file

@ -869,6 +869,7 @@ pvr_copy_buffer_to_image_region_format(struct pvr_cmd_buffer *const cmd_buffer,
region->imageExtent.height,
row_length_in_texels);
transfer_cmd->sources[0].surface.sample_count = image->vk.samples;
transfer_cmd->sources[0].surface.depth = 1;
transfer_cmd->source_count = 1;
@ -1012,6 +1013,7 @@ pvr_copy_image_to_buffer_region_format(struct pvr_cmd_buffer *const cmd_buffer,
dst_rect.extent.width = region->imageExtent.width;
dst_rect.extent.height = region->imageExtent.height;
dst_surface.sample_count = image->vk.samples;
if (util_format_is_compressed(pformat)) {
uint32_t block_width = util_format_get_blockwidth(pformat);