mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 13:50:25 +01:00
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:
parent
5cbe01c83f
commit
0bf037c0fe
1 changed files with 4 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue