unsigned start_layer, unsigned num_layers,
struct isl_surf tmp_surfs[1])
{
+ const struct gen_device_info *devinfo = &brw->screen->devinfo;
+
if (mt->surf.msaa_layout == ISL_MSAA_LAYOUT_ARRAY) {
const unsigned num_samples = mt->surf.samples;
for (unsigned i = 0; i < num_layers; i++) {
else if (mt->hiz_buf)
aux_surf = &mt->hiz_buf->surf;
+ if (mt->format == MESA_FORMAT_S_UINT8 && is_render_target &&
+ devinfo->gen <= 7)
+ mt->r8stencil_needs_update = true;
+
if (surf->aux_usage == ISL_AUX_USAGE_HIZ &&
!intel_miptree_level_has_hiz(mt, *level))
surf->aux_usage = ISL_AUX_USAGE_NONE;