intel/blorp: Use stencil hardware less for CPB copies

Don't use it without ISL_AUX_USAGE_STC_CCS. With a future patch, this
will allow blorp_copy() calls to increase the size of the surface format
for CPB.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39974>
This commit is contained in:
Nanley Chery 2026-02-18 09:02:06 -05:00 committed by Marge Bot
parent 20bf27f2a8
commit 9351dbfb25

View file

@ -1911,8 +1911,8 @@ try_blorp_blit(struct blorp_batch *batch,
} else {
key->dst_usage = ISL_SURF_USAGE_RENDER_TARGET_BIT;
}
} else if (params->dst.surf.usage & (ISL_SURF_USAGE_STENCIL_BIT |
ISL_SURF_USAGE_CPB_BIT)) {
} else if ((params->dst.surf.usage & ISL_SURF_USAGE_STENCIL_BIT) ||
params->dst.aux_usage == ISL_AUX_USAGE_STC_CCS) {
assert(params->dst.surf.format == ISL_FORMAT_R8_UINT);
if (devinfo->ver >= 9 && !(batch->flags & BLORP_BATCH_USE_COMPUTE)) {
key->dst_usage = ISL_SURF_USAGE_STENCIL_BIT;