radeonsi: allow direct hw MSAA resolve for scanout surfaces
authorMarek Olšák <marek.olsak@amd.com>
Sun, 5 Jun 2016 15:43:43 +0000 (17:43 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 7 Jun 2016 22:22:45 +0000 (00:22 +0200)
No idea why this was disabled, but it works fine.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_blit.c

index dee3c2f32d33481af09ebdc1bf0310e368a3c297..c28533e2c746f30df89390a9a6302641a72e3621 100644 (file)
@@ -902,7 +902,6 @@ static bool do_hardware_msaa_resolve(struct pipe_context *ctx,
            info->src.box.height == dst_height &&
            info->src.box.depth == 1 &&
            dst->surface.level[info->dst.level].mode >= RADEON_SURF_MODE_1D &&
-           !(dst->surface.flags & RADEON_SURF_SCANOUT) &&
            (!dst->cmask.size || !dst->dirty_level_mask) && /* dst cannot be fast-cleared */
            !dst->dcc_offset) {
                si_blitter_begin(ctx, SI_COLOR_RESOLVE |