anv: Enable "permanent" compression for immutable format images
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 25 Oct 2016 17:59:03 +0000 (10:59 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 17 Nov 2016 20:03:24 +0000 (12:03 -0800)
commit4e91f158e66af03d754231736346839d3cdd638f
treef517321568cba14009c37dc4b64d4b0bd16942da
parent2b5644e94d4f3394bbbb19498c259f45c748ea76
anv: Enable "permanent" compression for immutable format images

This commit extends our support of color compression to surfaces without
the VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT set.  These images will never have
an image view created with a different format then the one set at image
creation time so it's safe to always use compression.  We still bail if the
image is used as a storage image because that sometimes ends up using a
different format.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/vulkan/anv_blorp.c
src/intel/vulkan/anv_image.c