tex->surface.u.gfx9.dcc.pipe_aligned);
expand_fmask:
- if (need_fmask_expand && tex->surface.fmask_offset && tex->fmask_is_not_identity) {
+ if (need_fmask_expand && tex->surface.fmask_offset && !tex->fmask_is_identity) {
si_compute_expand_fmask(&sctx->b, &tex->buffer.b.b);
- tex->fmask_is_not_identity = false;
+ tex->fmask_is_identity = true;
}
}
(!force_cpdma &&
clear_value_size == 4 &&
offset % 4 == 0 &&
- (size > 32*1024 || sctx->chip_class <= GFX8))) {
+ (size > 32*1024 || sctx->chip_class <= GFX9))) {
si_compute_do_clear_or_copy(sctx, dst, offset, NULL, 0,
aligned_size, clear_value,
clear_value_size, coher);
uint16_t stencil_dirty_level_mask; /* each bit says if that mipmap is compressed */
enum pipe_format db_render_format:16;
uint8_t stencil_clear_value;
- bool fmask_is_not_identity:1;
+ bool fmask_is_identity:1;
bool tc_compatible_htile:1;
bool htile_stencil_disabled:1;
bool depth_cleared:1; /* if it was cleared at least once */
if (tex->surface.fmask_offset) {
tex->dirty_level_mask |= 1 << surf->u.tex.level;
- tex->fmask_is_not_identity = true;
+ tex->fmask_is_identity = false;
}
if (tex->dcc_gather_statistics)
tex->separate_dcc_dirty = true;