radv: handle sample locations during automatic layout transitions

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 7 June 2019 11:11 EDT

From the Vulkan spec 1.1.109:

"Some implementations may need to evaluate depth image values while performing image layout transitions. To accommodate this, instances of the VkSampleLocationsInfoEXT structure can be specified for each situation where an explicit or automatic layout transition has to take place. [...] and
VkRenderPassSampleLocationsBeginInfoEXT can be chained from
VkRenderPassBeginInfo to provide sample locations for layout transitions performed implicitly by a render pass instance."

e7677a697b9 radv: handle sample locations during automatic layout transitions
src/amd/vulkan/radv_cmd_buffer.c | 177 +++++++++++++++++++++++++++++++++++----
src/amd/vulkan/radv_private.h | 9 ++
2 files changed, 168 insertions(+), 18 deletions(-)

Upstream: cgit.freedesktop.org


  • Share