instead of in intel_miptree_init_mcs(). For lossless compression
the status is immediately overwritten in
intel_miptree_alloc_non_msrt_mcs() while the status for
non-compressed non-msaa miptrees is explicitly set in
do_blorp_clear().
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
void *data = mt->mcs_buf->bo->virtual;
memset(data, init_value, mt->mcs_buf->size);
drm_intel_bo_unmap(mt->mcs_buf->bo);
- mt->fast_clear_state = INTEL_FAST_CLEAR_STATE_CLEAR;
}
static struct intel_miptree_aux_buffer *
return false;
intel_miptree_init_mcs(brw, mt, 0xFF);
+ mt->fast_clear_state = INTEL_FAST_CLEAR_STATE_CLEAR;
return true;
}