assert(sctx->dbcb_depth_copy_enabled || sctx->dbcb_stencil_copy_enabled);
+ bool old_update_dirtiness = sctx->framebuffer.do_update_surf_dirtiness;
+ sctx->decompression_enabled = true;
+ sctx->framebuffer.do_update_surf_dirtiness = false;
+
while (level_mask) {
unsigned level = u_bit_scan(&level_mask);
fully_copied_levels |= 1u << level;
}
+ sctx->decompression_enabled = false;
+ sctx->framebuffer.do_update_surf_dirtiness = old_update_dirtiness;
sctx->dbcb_depth_copy_enabled = false;
sctx->dbcb_stencil_copy_enabled = false;
si_mark_atom_dirty(sctx, &sctx->db_render_state);
surf_tmpl.format = texture->resource.b.b.format;
+ bool old_update_dirtiness = sctx->framebuffer.do_update_surf_dirtiness;
+ sctx->decompression_enabled = true;
+ sctx->framebuffer.do_update_surf_dirtiness = false;
+
while (level_mask) {
unsigned level = u_bit_scan(&level_mask);
if (planes & PIPE_MASK_S)
texture->stencil_dirty_level_mask &= ~fully_decompressed_mask;
+ sctx->decompression_enabled = false;
+ sctx->framebuffer.do_update_surf_dirtiness = old_update_dirtiness;
sctx->db_flush_depth_inplace = false;
sctx->db_flush_stencil_inplace = false;
si_mark_atom_dirty(sctx, &sctx->db_render_state);
custom_blend = sctx->custom_blend_eliminate_fastclear;
}
+ bool old_update_dirtiness = sctx->framebuffer.do_update_surf_dirtiness;
+ sctx->decompression_enabled = true;
+ sctx->framebuffer.do_update_surf_dirtiness = false;
+
while (level_mask) {
unsigned level = u_bit_scan(&level_mask);
rtex->dirty_level_mask &= ~(1 << level);
}
}
+
+ sctx->decompression_enabled = false;
+ sctx->framebuffer.do_update_surf_dirtiness = old_update_dirtiness;
}
static void
si_mark_atom_dirty(sctx, &sctx->msaa_sample_locs.atom);
}
- sctx->need_check_render_feedback = true;
sctx->do_update_shaders = true;
- sctx->framebuffer.do_update_surf_dirtiness = true;
+
+ if (!sctx->decompression_enabled) {
+ /* Prevent textures decompression when the framebuffer state
+ * changes come from the decompression passes themselves.
+ */
+ sctx->need_check_render_feedback = true;
+ sctx->framebuffer.do_update_surf_dirtiness = true;
+ }
}
static void si_emit_framebuffer_state(struct si_context *sctx, struct r600_atom *atom)