dzn: Introduce dzn_cmd_buffer_queue_image_range_state_transition()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 29 Jun 2022 15:54:32 +0000 (17:54 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 29 Jun 2022 16:54:38 +0000 (09:54 -0700)
commitd07befe4f821eda14ae94aa02a9fe64235ed97c9
tree776b0c1491722565302a82f97b281ba237b0523a
parented78cf307b5da5f769a7912b54bad7ff56e96e72
dzn: Introduce dzn_cmd_buffer_queue_image_range_state_transition()

Sometimes there's no obvious mappings between a VkImageLayout and
a D3D12_RESOURCE_STATE, so let's just provide a helper that takes
before/after resource states instead of old/new layouts, and use it
to fix the resolve case.

Fixes: 35356b1173ee ("dzn: Cache and pack transition barriers")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17250>
src/microsoft/vulkan/dzn_cmd_buffer.c