radv: handle sample locations during automatic layout transitions
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 30 May 2019 10:27:29 +0000 (12:27 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 7 Jun 2019 11:11:11 +0000 (13:11 +0200)
commite7677a697b9017cf44850f3ff3ac02e61dae2752
tree34bb84335ae519671e795b7c4523391914d43caa
parentd0d41e58c3c614f7a3191e94a5327916d23f0142
radv: handle sample locations during automatic layout transitions

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."

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_private.h