OSDN Git Service

anv: assert that color attachment are valid
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 6 Feb 2019 17:37:58 +0000 (17:37 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 8 Feb 2019 00:18:16 +0000 (00:18 +0000)
commita934a3d1245d823650a18830bab2f6b7b4b4dbbe
tree3e6f02c5079fad96a5b4deda819c08ac1b30f639
parent3c153b39823ee085bfe46ce4afbe347dee0fdfee
anv: assert that color attachment are valid

This reverts commit d76e7779884775bcebf235adb0e8367816b9b95d.

Let's make this obvious that there is an application issue if it tries
to access an attachment that doesn't exist in the current pass.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: d76e7779884775 ("anv: Handle VK_ATTACHMENT_UNUSED in colorAttachment")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_blorp.c