anv: fix multiview for clear commands
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 18 May 2017 06:23:38 +0000 (08:23 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 18 May 2017 09:53:25 +0000 (11:53 +0200)
commit2322ddf5480a0e07246fc4aefe4fdc1411b555a7
tree7d69808e8979f44f0e097c5d1b5340cff4b4b939
parent70215a23c656531dfd1650054ea497a860d2ba39
anv: fix multiview for clear commands

According to the VK_KHX_multiview spec:

"Multiview causes all drawing and clear commands in the subpass to
behave as if they were broadcast to each view, where each view is
represented by one layer of the framebuffer attachments."

This adds support for multiview clears, which were missing in the
initial implementation.

v2 (Jason):
  - split multiview from regular case
  - Use for_each_bit() macro

Fixes new CTS multiview tests:
dEQP-VK.multiview.clear_attachments.*

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_blorp.c