anv/formats: Don't use an RGBX format if it isn't renderable
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 26 Jul 2016 18:33:45 +0000 (11:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 23 Aug 2016 18:45:24 +0000 (11:45 -0700)
commitfb90291dd5a734de3eb2ab59d883df3d2f9db0c7
tree2a94062ea531b6c8b4e83b08ae85abd1e5cca278
parent4f3f8bb59dd98e39c363fe47a55a7f97e7df9f4b
anv/formats: Don't use an RGBX format if it isn't renderable

The whole point of using RGBX is so that we can render to it so if it isn't
renderable, that kind-of defeats the purpose.  Some formats (one example is
R32G32B32X32_SFLOAT) exist in the format table but aren't actually
renderable.  Eventually, we'd like to get away from RGBX entirely, but this
fixes hangs on BDW today.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_formats.c