blorp: Don't try to use the 3D stencil write hardware for compute
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 4 Oct 2021 18:27:19 +0000 (11:27 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 30 Nov 2021 12:30:50 +0000 (12:30 +0000)
commit5dc36e5e93ae84182a3ab3eeeb3c569778eb3f07
tree20d1f76593b0bd67864542d30b46907aa74e2e81
parentd832209a781f7d3e04b23ddd7e5bfd0ee1a0533a
blorp: Don't try to use the 3D stencil write hardware for compute

When we're doing a stencil blit via a fragment shader, we can avoid
W-tiling shenanigans by using the stencil write hardware on Skylake
and later.

Of course, the compute engine doesn't have stencil fragment writes,
so it can't do that.  Just fall back to the detiling shenanigans.

Caught by Piglit's arb_copy_image-formats when forcing iris to use
BLOCS for resource_copy_region on Icelake.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13524>
src/intel/blorp/blorp_blit.c