filter = BLORP_FILTER_NEAREST;
}
- bool flush_hack = src_fmt.fmt != src_res->surf.format &&
- iris_batch_references(batch, src_res->bo);
+ bool format_mismatch = src_fmt.fmt != src_res->surf.format;
- if (flush_hack)
+ if (format_mismatch && iris_batch_references(batch, src_res->bo))
tex_cache_flush_hack(batch);
if (dst_res->base.target == PIPE_BUFFER)
blorp_batch_finish(&blorp_batch);
- if (flush_hack)
+ if (format_mismatch)
tex_cache_flush_hack(batch);
iris_resource_finish_write(ice, dst_res, info->dst.level, info->dst.box.z,
get_copy_region_aux_settings(devinfo, dst_res, &dst_aux_usage,
&dst_clear_supported);
- bool flush_hack = iris_batch_references(batch, src_res->bo);
- if (flush_hack)
+ if (iris_batch_references(batch, src_res->bo))
tex_cache_flush_hack(batch);
if (dst->target == PIPE_BUFFER)
src_box->depth, dst_aux_usage);
}
- if (flush_hack)
- tex_cache_flush_hack(batch);
+ tex_cache_flush_hack(batch);
}