anv: fix number of planes for depth & stencil
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 12 Apr 2018 18:06:47 +0000 (11:06 -0700)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 13 Apr 2018 18:44:53 +0000 (11:44 -0700)
commit0a6547014fbe5371f5b7253f2c2640ad0026b184
tree79fcf0bafcd269c396a59b2867b127bcd3a82c1b
parent6ff0c6f4ebcb87ea6c6fe5a4ba90b548f666067d
anv: fix number of planes for depth & stencil

We're not counting correctly with depth & stencil images.

Additionally we need to move an assert that is meant just for color
attachments.

v2: Move an assert() (Reported by Craig)
    Change aspect mask checks (Francesco)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: a62a97933578a ("anv: enable multiple planes per image/imageView")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105994
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c