anv: Disallow fast-clears which require format-reinterpretation
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 25 Mar 2020 19:54:19 +0000 (14:54 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 22:45:39 +0000 (22:45 +0000)
commitbf92e96d9c671a94e12f1ada0c7eca1f26a4d54b
tree52d2fc81ba8fa4819f7f50dc5d741e3a793ef5ac
parent20e72e435c9650bca5da6b0c05a0fcec1fcd517a
anv: Disallow fast-clears which require format-reinterpretation

In order to actually hit this case you have to be using a very odd
color/view combination.  The common cases of clear-to-zero and 0/1 clear
colors with an sRGB view don't require any re-interpretation.  This is
probably better than always resolving whenever we have a format mismatch
like we are today because that hits the sRGB case every time.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4393>
src/intel/vulkan/genX_cmd_buffer.c