intel/blorp: Assert an 8bpp fast clear restriction
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 25 Apr 2023 18:20:05 +0000 (11:20 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 15 May 2023 19:54:02 +0000 (19:54 +0000)
commitf220f3fdaed5e15fa65644164fe8b1e1b9ed5064
treef4add9ac2b52fce314819dbd9264f062a52ccb87
parent54c9fa63740bb8e365a6fe42c62dfce5ccc73368
intel/blorp: Assert an 8bpp fast clear restriction

We can't do fast clear operations on some LODs of 8bpp surfaces. Add an
assertion to BLORP to protect against drivers attempting to do this.

This assertion was successfully hit with some local modifications to
iris and with the piglit test case, "generatemipmap-base-change format".

Ref: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7301
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22857>
src/intel/blorp/blorp_genX_exec.h