freedreno/a5xx: fix blitter nr_samples check
authorRob Clark <robdclark@gmail.com>
Tue, 29 Jan 2019 17:21:19 +0000 (12:21 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 29 Jan 2019 17:21:19 +0000 (12:21 -0500)
nr_samples for non-MSAA case could be either zero or one.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_blitter.c

index 0cfe92ac22f5e9e979f769a11eb8e78c10377603..da76afdfa60d2cf24b49eba73a52b4b68f1a4711 100644 (file)
@@ -122,7 +122,8 @@ can_do_blit(const struct pipe_blit_info *info)
        debug_assert(info->dst.box.height >= 0);
        debug_assert(info->dst.box.depth >= 0);
 
-       if (info->dst.resource->nr_samples + info->src.resource->nr_samples)
+       if ((info->dst.resource->nr_samples > 1) ||
+                       (info->src.resource->nr_samples > 1))
                return false;
 
        if (info->scissor_enable)