mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
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:
parent
9ab273f5ab
commit
a48857be7b
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue