static bool
is_astc(enum isl_format format)
{
- return format != ISL_FORMAT_UNSUPPORTED &&
- isl_format_get_layout(format)->txc == ISL_TXC_ASTC;
+ return isl_format_get_layout(format)->txc == ISL_TXC_ASTC;
}
static void
batch->name == IRIS_BATCH_BLITTER ? IRIS_DOMAIN_OTHER_WRITE
: IRIS_DOMAIN_RENDER_WRITE;
+ enum isl_format src_fmt, dst_fmt;
+ blorp_copy_get_formats(&screen->isl_dev, &src_res->surf, &dst_res->surf,
+ &src_fmt, &dst_fmt);
+
enum isl_aux_usage src_aux_usage, dst_aux_usage;
bool src_clear_supported, dst_clear_supported;
get_copy_region_aux_settings(ice, batch, src_res, src_level,
&dst_aux_usage, &dst_clear_supported, true);
if (iris_batch_references(batch, src_res->bo))
- tex_cache_flush_hack(batch, ISL_FORMAT_UNSUPPORTED, src_res->surf.format);
+ tex_cache_flush_hack(batch, src_fmt, src_res->surf.format);
if (dst->target == PIPE_BUFFER)
util_range_add(&dst_res->base.b, &dst_res->valid_buffer_range, dstx, dstx + src_box->width);
blorp_batch_finish(&blorp_batch);
- tex_cache_flush_hack(batch, ISL_FORMAT_UNSUPPORTED, src_res->surf.format);
+ tex_cache_flush_hack(batch, src_fmt, src_res->surf.format);
}
/**