anv: GetDeviceImageFormatProperties: fix TRANSFER formats
authorLionel Landwerlin <llandwerlin@gmail.com>
Sat, 13 Aug 2016 00:00:57 +0000 (01:00 +0100)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 22 Aug 2016 17:41:30 +0000 (10:41 -0700)
commit475ce61d1aa0fb06202511b4ea8ad9bd1fab64d0
treed94b701376350a1e76b1e8a745cf7b0bfa9f3c73
parent0328b20050ef4dba45ae7b03f00dc9112f5ee1ee
anv: GetDeviceImageFormatProperties: fix TRANSFER formats

We let the user believe we support some transfer formats which we don't.
This can lead to crashes when actually trying to use those formats for
example on dEQP-VK.api.copy_and_blit.image_to_image.* tests.

Let all formats we can render to or sample from as meta implements transfers
using attachments.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_formats.c