diff options
Diffstat (limited to 'gcbv/mirror/gcbv.c')
-rw-r--r-- | gcbv/mirror/gcbv.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcbv/mirror/gcbv.c b/gcbv/mirror/gcbv.c index f6c0cfe..7451198 100644 --- a/gcbv/mirror/gcbv.c +++ b/gcbv/mirror/gcbv.c @@ -4338,13 +4338,14 @@ enum bverror bv_blt(struct bvbltparams *bltparams) } } - if (EQ_SIZE(srcinfo[i].rect, dstrect)) - bverror = do_blit(bltparams, batch, - &srcinfo[i]); - else if ((srcinfo[i].rect->width == 1) && - (srcinfo[i].rect->height == 1)) + if ((srcinfo[i].rect->width == 1) && + (srcinfo[i].rect->height == 1) && + (bltparams->src1.desc->virtaddr)) bverror = do_fill(bltparams, batch, &srcinfo[i]); + else if (EQ_SIZE(srcinfo[i].rect, dstrect)) + bverror = do_blit(bltparams, batch, + &srcinfo[i]); else bverror = do_filter(bltparams, batch, &srcinfo[i]); |