anv/meta: Use anv_cmd_state::attachments for clears
authorChad Versace <chad.versace@intel.com>
Wed, 13 Jan 2016 19:52:23 +0000 (11:52 -0800)
committerChad Versace <chad.versace@intel.com>
Fri, 15 Jan 2016 06:53:05 +0000 (22:53 -0800)
commit356f952f87408ee30d1d42d582d57fee41318ba7
tree913140400cf5a5e72f22581859400d49484d0196
parenta4b045ca44fb8210537e5a2b7c772f836be20e97
anv/meta: Use anv_cmd_state::attachments for clears

Rewrite anv_cmd_buffer_clear_attachments, which emits the top-of-pass
clears, to use the data provided in anv_cmd_state::attachments. This
prepares for deferring each attachment clear to the first subpass that
uses the attachment.
src/vulkan/anv_meta_clear.c
src/vulkan/anv_private.h
src/vulkan/gen7_cmd_buffer.c
src/vulkan/gen8_cmd_buffer.c