Skip to content

iris: Fix CCS check in iris_texture_subdata().

Kenneth Graunke requested to merge kwg/mesa:iris-texsubimage-fix into master

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: 39f06e28 ("iris: Implement pipe->texture_subdata directly")

Merge request reports