pvr: fix ds merge logic for blit image to image

Fixes: 407e692c3 ("pvr: fix logic for setting DSMERGE and PICKD")
Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39916>
This commit is contained in:
Luigi Santivetti 2026-02-06 13:38:50 +00:00 committed by Marge Bot
parent 3df3b97acb
commit 339a838b46

View file

@ -790,8 +790,8 @@ void pvr_rogue_CmdCopyImage2(VkCommandBuffer commandBuffer,
VK_FROM_HANDLE(pvr_image, src, pCopyImageInfo->srcImage);
VK_FROM_HANDLE(pvr_image, dst, pCopyImageInfo->dstImage);
const bool can_merge_ds = src->vk.format == VK_FORMAT_D24_UNORM_S8_UINT &&
dst->vk.format == VK_FORMAT_D24_UNORM_S8_UINT;
const bool can_merge_ds = pvr_vk_format_is_combined_ds(src->vk.format) &&
pvr_vk_format_is_combined_ds(dst->vk.format);
PVR_CHECK_COMMAND_BUFFER_BUILDING_STATE(cmd_buffer);