iris: Disable ASTC 5x5 support on Gen9 for now.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 23 Nov 2019 05:41:58 +0000 (21:41 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 4 Jan 2020 02:06:38 +0000 (18:06 -0800)
commite858321f091ffadf0558386ac62b80fb2bde3e35
treee0467ef8ec696dfa3ac0fe103d03b53392e7da76
parent8e6308363bf0e52c10f4c3951c2c4d25341d0133
iris: Disable ASTC 5x5 support on Gen9 for now.

Intel Gen9 hardware has some nasty restrictions where ASTC 5x5 formats
and color compression can't both live in the sampler cache at the same
time.  To properly support it, we have to track which of those exist
in the cache and flush ASTC out or resolve away compression.

As far as I'm aware, very little uses ASTC 5x5 textures, so instead
of replicating all that for iris, we simply turn it off and rely on
the Gallium fallback mechanism to fake it via uncompressed RGBA.

This should avoid GPU hangs any time people use ASTC 5x5 with CCS.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/gallium/drivers/iris/iris_formats.c