u_blitter: enable msaa when dst num samples is > 1
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 22 Jul 2019 12:02:14 +0000 (14:02 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 23 Jul 2019 18:42:20 +0000 (14:42 -0400)
commitd811446e6cf0a3e9ad0cc4f5898db33031698c32
treee2ec249a9800484d94917f08d413bb49133bce2e
parentae392d73c978efcfbbe7fbfff446cabe2ab79559
u_blitter: enable msaa when dst num samples is > 1

Commit ea5b7de138b broke some piglit tests on radeonsi (Bonaire hardware).
This commit fixes half of the regression by enabling msaa if the dest surface has
more than 1 sample (instead of hardcoding it to false).

Fixes: ea5b7de138b ("radeonsi: make gl_SampleMaskIn = 0x1 when MSAA is disabled")
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_blitter.c