blorp: Assert that blorp_copy() on the blitter can handle it

Safeguards against callers that don't guarantee the necessary things.

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14912>
This commit is contained in:
Kenneth Graunke 2022-02-02 20:15:47 -08:00
parent d2646e147b
commit 9c5dc4985b

View file

@ -2875,6 +2875,11 @@ blorp_copy(struct blorp_batch *batch,
assert(blorp_copy_supports_compute(batch->blorp,
src_surf->surf, dst_surf->surf,
dst_surf->aux_usage));
} else if (batch->flags & BLORP_BATCH_USE_BLITTER) {
assert(blorp_copy_supports_blitter(batch->blorp,
src_surf->surf, dst_surf->surf,
src_surf->aux_usage,
dst_surf->aux_usage));
}
brw_blorp_surface_info_init(batch, &params.src, src_surf, src_level,