anv: Fix parsing of load ops in VkAttachmentDescription
authorChad Versace <chad.versace@intel.com>
Thu, 29 Oct 2015 17:59:55 +0000 (10:59 -0700)
committerChad Versace <chad.versace@intel.com>
Thu, 29 Oct 2015 17:59:55 +0000 (10:59 -0700)
commitc284c39b135821a9417b95319fa6726e5892bef9
tree666f7531cf71dfbcbb497e1ffc11a52063e56269
parent8bcba083db25da7074270aaaeb7ea1ab04bafc33
anv: Fix parsing of load ops in VkAttachmentDescription

My original understanding of VkAttachmentDescription::loadOp,
stencilLoadOp was incorrect. Below are all possible combinations:

  VkFormat       | loadOp=clear   stencilLoadOp=clear
  ---------------+---------------------------
  color          | clear-color    ignored
  depth-only     | clear-depth    ignored
  stencil-only   | ignored        clear-stencil
  depth-stencil  | clear-depth    clear-stencil
src/vulkan/anv_device.c
src/vulkan/anv_meta.c