summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-01-29 12:22:08 -0500
committerRob Clark <[email protected]>2019-01-29 12:22:08 -0500
commit1a6ddfe5ee1fc4b850f82f9cc3b0248101cae55a (patch)
tree83ed8352b250b8c4e49e875272109012b308a9a3
parent9106a0fe335261b2bbfae02c23548abb0b555a34 (diff)
freedreno/a6xx: fix blitter nr_samples check
nr_samples for non-MSAA case could be either zero or one. Signed-off-by: Rob Clark <[email protected]>
-rw-r--r--src/gallium/drivers/freedreno/a6xx/fd6_blitter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
index 3e14e71933d..460255f748a 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
@@ -113,7 +113,9 @@ can_do_blit(const struct pipe_blit_info *info)
debug_assert(info->dst.box.height >= 0);
debug_assert(info->dst.box.depth >= 0);
- fail_if(info->dst.resource->nr_samples + info->src.resource->nr_samples > 2);
+ /* non-multisampled could either have nr_samples == 0 or == 1 */
+ fail_if(info->dst.resource->nr_samples > 1);
+ fail_if(info->src.resource->nr_samples > 1);
fail_if(info->window_rectangle_include);