pvr: fix msaa setup for resolve TQs

Signed-off-by: SoroushIMG <soroush.kashani@imgtec.com>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31679>
This commit is contained in:
SoroushIMG
2023-06-10 20:11:27 +01:00
committed by Marge Bot
parent 1ed8fb9cc3
commit 8a92ee673e
2 changed files with 9 additions and 8 deletions
+9 -4
View File
@@ -534,10 +534,15 @@ pvr_copy_or_resolve_image_region(struct pvr_cmd_buffer *cmd_buffer,
dst_extent.height = MAX2(1U, src_extent.height * block_height);
}
/* We don't care what format dst is as it's guaranteed to be size compatible
* with src.
*/
dst_format = pvr_get_raw_copy_format(src->vk.format);
if (src->vk.samples > dst->vk.samples) {
/* Resolve op needs to know the actual format. */
dst_format = dst->vk.format;
} else {
/* We don't care what format dst is as it's guaranteed to be size
* compatible with src.
*/
dst_format = pvr_get_raw_copy_format(src->vk.format);
}
src_format = dst_format;
src_layers =
@@ -2856,10 +2856,6 @@ static VkResult pvr_3d_copy_blit_core(struct pvr_transfer_ctx *ctx,
pvr_csb_pack (&regs->isp_bgobjvals, CR_ISP_BGOBJVALS, reg) {
reg.enablebgtag = true;
}
/* clang-format off */
pvr_csb_pack (&regs->isp_aa, CR_ISP_AA, reg);
/* clang-format on */
} else {
/* No shader. */
state->pds_temps = 0U;