mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
tu: Use image view format for sysmem resolves
The spec says that we're supposed to do this. This fixes the newly-introduced tests dEQP-VK.image.mutable.*.*_draw_copy_resolve with TU_DEBUG=sysmem. Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33115>
This commit is contained in:
parent
47a85815b0
commit
450755bd40
1 changed files with 2 additions and 2 deletions
|
|
@ -3494,7 +3494,7 @@ tu_resolve_sysmem(struct tu_cmd_buffer *cmd,
|
|||
uint32_t layers,
|
||||
const VkRect2D *rect)
|
||||
{
|
||||
assert(src->image->vk.format == dst->image->vk.format ||
|
||||
assert(src->vk.format == dst->vk.format ||
|
||||
(vk_format_is_depth_or_stencil(src->image->vk.format) &&
|
||||
vk_format_is_depth_or_stencil(dst->image->vk.format)));
|
||||
|
||||
|
|
@ -3509,7 +3509,7 @@ tu_resolve_sysmem(struct tu_cmd_buffer *cmd,
|
|||
src, dst, layer_mask, layers, rect,
|
||||
src_separate_ds, dst_separate_ds);
|
||||
} else {
|
||||
resolve_sysmem<CHIP>(cmd, cs, src->image->vk.format, dst->image->vk.format,
|
||||
resolve_sysmem<CHIP>(cmd, cs, src->vk.format, dst->vk.format,
|
||||
src, dst, layer_mask, layers, rect,
|
||||
src_separate_ds, dst_separate_ds);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue