anv: Emit load clears at start of each subpass
authorChad Versace <chad.versace@intel.com>
Wed, 13 Jan 2016 22:47:51 +0000 (14:47 -0800)
committerChad Versace <chad.versace@intel.com>
Fri, 15 Jan 2016 06:53:05 +0000 (22:53 -0800)
commitdeb8dd89b5b211436eea2b8142a6b0acceeec6fd
tree3f6b16eca12b2fcb81860d54d5bd4625848c372e
parent0679bef49f5c4c1c3f2fa20b2da090bcc9ebaed6
anv: Emit load clears at start of each subpass

This should improve cache residency for render targets.

Pre-patch, vkCmdBeginRenderPass emitted all the meta clears for
VK_ATTACHMENT_LOAD_OP_CLEAR before any subpass began. Post-patch,
vCmdBeginRenderPass and vkCmdNextSubpass emit only the clears needed for
that current subpass.
src/vulkan/anv_meta_clear.c
src/vulkan/anv_private.h
src/vulkan/gen7_cmd_buffer.c
src/vulkan/gen8_cmd_buffer.c