summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-01-29 12:21:19 -0500
committerRob Clark <[email protected]>2019-01-29 12:21:19 -0500
commit9106a0fe335261b2bbfae02c23548abb0b555a34 (patch)
treec01283a757753fbebb9f44dbd7d5afe2c61c49d0 /src
parent69edc972fc6ece71cfc9ca2f1e673c44d616bfcc (diff)
freedreno/a5xx: fix blitter nr_samples check
nr_samples for non-MSAA case could be either zero or one. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_blitter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c b/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c
index 0cfe92ac22f..da76afdfa60 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c
@@ -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)