mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-19 12:20:40 +02:00
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:
parent
d2646e147b
commit
9c5dc4985b
1 changed files with 5 additions and 0 deletions
|
|
@ -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, ¶ms.src, src_surf, src_level,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue