iris: Fix CCS check in iris_texture_subdata().
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 21 Jul 2020 00:08:46 +0000 (17:08 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Jul 2020 09:10:37 +0000 (09:10 +0000)
commit576c53dadf3f60bc363a39e85625afb67a2cbb8d
tree55d56a059524e7516d3e52c1917b918123dbcfdb
parent0868638aed05775db44e9acc625bc34c737ee4fa
iris: Fix CCS check in iris_texture_subdata().

The intention here was to check "Would the GPU be able to compress
this if we used the PBO-based texture upload path?"  Prior to Gen12,
that meant checking for CCS_E.  On Gen12, there are a lot more types
of compression, and basic CCS_E was replaced by GEN12_CCS_E, making
this check simply not work, so we'd take the CPU path instead.

Instead, check if it has CCS, and isn't the basic "fast clear" CCS_D.

Fixes: 39f06e28485 ("iris: Implement pipe->texture_subdata directly")
Tested-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6005>
src/gallium/drivers/iris/iris_resource.c