Skip to content
Snippets Groups Projects
Commit d2261918 authored by Marek Olšák's avatar Marek Olšák
Browse files

r600g,radeonsi: don't use hardware MSAA resolve if dst is fast-cleared


It doesn't work and our docs say so too.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
parent 0423513c
No related branches found
No related tags found
No related merge requests found
...@@ -788,7 +788,8 @@ static bool do_hardware_msaa_resolve(struct pipe_context *ctx, ...@@ -788,7 +788,8 @@ static bool do_hardware_msaa_resolve(struct pipe_context *ctx,
info->src.box.width == dst_width && info->src.box.width == dst_width &&
info->src.box.height == dst_height && info->src.box.height == dst_height &&
info->src.box.depth == 1 && info->src.box.depth == 1 &&
dst->surface.level[info->dst.level].mode >= RADEON_SURF_MODE_1D) { dst->surface.level[info->dst.level].mode >= RADEON_SURF_MODE_1D &&
(!dst->cmask.size || !dst->dirty_level_mask) /* dst cannot be fast-cleared */) {
r600_blitter_begin(ctx, R600_COLOR_RESOLVE | r600_blitter_begin(ctx, R600_COLOR_RESOLVE |
(info->render_condition_enable ? 0 : R600_DISABLE_RENDER_COND)); (info->render_condition_enable ? 0 : R600_DISABLE_RENDER_COND));
util_blitter_custom_resolve_color(rctx->blitter, util_blitter_custom_resolve_color(rctx->blitter,
......
...@@ -688,7 +688,8 @@ static bool do_hardware_msaa_resolve(struct pipe_context *ctx, ...@@ -688,7 +688,8 @@ static bool do_hardware_msaa_resolve(struct pipe_context *ctx,
info->src.box.height == dst_height && info->src.box.height == dst_height &&
info->src.box.depth == 1 && info->src.box.depth == 1 &&
dst->surface.level[info->dst.level].mode >= RADEON_SURF_MODE_1D && dst->surface.level[info->dst.level].mode >= RADEON_SURF_MODE_1D &&
!(dst->surface.flags & RADEON_SURF_SCANOUT)) { !(dst->surface.flags & RADEON_SURF_SCANOUT) &&
(!dst->cmask.size || !dst->dirty_level_mask) /* dst cannot be fast-cleared */) {
si_blitter_begin(ctx, SI_COLOR_RESOLVE | si_blitter_begin(ctx, SI_COLOR_RESOLVE |
(info->render_condition_enable ? 0 : SI_DISABLE_RENDER_COND)); (info->render_condition_enable ? 0 : SI_DISABLE_RENDER_COND));
util_blitter_custom_resolve_color(sctx->blitter, util_blitter_custom_resolve_color(sctx->blitter,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment