anv: Advertise support VK_FORMAT_R8_SRGB
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 30 Jun 2017 01:52:03 +0000 (18:52 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 Sep 2017 19:06:30 +0000 (12:06 -0700)
commit9ec51aa0fed786962508b7d778c72b13a06e541c
tree048b78040019e553e9b311719c0727f3b250bfc9
parenta8ba57d35686bd55ffd2f7786b2ad10539ce0cc5
anv: Advertise support VK_FORMAT_R8_SRGB

Unreal Engine 4 seems to really like this format for some reason.  We
don't technically have the hardware format but we do have L8_SRGB.  It's
easy enough to fake with that and a swizzle.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_formats.c