Mesa (main): blorp: Assert that blorp_copy() on the blitter can handle it
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Feb 7 18:13:21 UTC 2022
Module: Mesa
Branch: main
Commit: 9c5dc4985b2cb832eea2b943eccc096f26cf3611
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c5dc4985b2cb832eea2b943eccc096f26cf3611
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Feb 2 20:15:47 2022 -0800
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 at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14912>
---
src/intel/blorp/blorp_blit.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
index 69381d5870d..c292ad6c77c 100644
--- a/src/intel/blorp/blorp_blit.c
+++ b/src/intel/blorp/blorp_blit.c
@@ -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,
More information about the mesa-commit
mailing list