i965/gen9: Return false in place of assert in intelEmitCopyBlit()

This allows the fallback paths to handle it correctly.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Anuj Phogat 2015-11-10 15:33:53 -08:00
parent 5cbe01c83f
commit 0bf037c0fe

View file

@ -564,9 +564,10 @@ intelEmitCopyBlit(struct brw_context *brw,
dst_offset, dst_pitch,
dst_tiling, dst_tr_mode,
w, h, cpp);
assert(use_fast_copy_blit ||
(src_tr_mode == INTEL_MIPTREE_TRMODE_NONE &&
dst_tr_mode == INTEL_MIPTREE_TRMODE_NONE));
if (!use_fast_copy_blit &&
(src_tr_mode != INTEL_MIPTREE_TRMODE_NONE ||
dst_tr_mode != INTEL_MIPTREE_TRMODE_NONE))
return false;
if (use_fast_copy_blit) {
/* When two sequential fast copy blits have different source surfaces,