Lines Matching refs:zstex
553 struct si_texture *zstex = zsbuf ? (struct si_texture *)zsbuf->texture : NULL; in si_clear() local
575 if (zstex && zsbuf->u.tex.first_layer == 0 && in si_clear()
576 zsbuf->u.tex.last_layer == util_max_layer(&zstex->buffer.b.b, 0)) { in si_clear()
578 if (zstex->enable_tc_compatible_htile_next_clear && in si_clear()
579 !zstex->tc_compatible_htile && in si_clear()
580 si_htile_enabled(zstex, zsbuf->u.tex.level, PIPE_MASK_ZS) && in si_clear()
583 (buffers & PIPE_CLEAR_DEPTH && (!zstex->surface.has_stencil || in si_clear()
584 zstex->htile_stencil_disabled)))) { in si_clear()
586 zstex->enable_tc_compatible_htile_next_clear = false; in si_clear()
587 zstex->tc_compatible_htile = true; in si_clear()
606 uint32_t clear_value = (zstex->surface.has_stencil && in si_clear()
607 !zstex->htile_stencil_disabled) || in si_clear()
609 si_clear_buffer(sctx, &zstex->buffer.b.b, zstex->surface.htile_offset, in si_clear()
610 zstex->surface.htile_size, &clear_value, 4, in si_clear()
615 if (buffers & PIPE_CLEAR_DEPTH && si_htile_enabled(zstex, zsbuf->u.tex.level, PIPE_MASK_Z) && in si_clear()
616 (!zstex->tc_compatible_htile || depth == 0 || depth == 1)) { in si_clear()
619 if (!zstex->depth_cleared || zstex->depth_clear_value != depth) { in si_clear()
623 if (zstex->depth_clear_value != (float)depth) { in si_clear()
624 if ((zstex->depth_clear_value != 0) != (depth != 0)) { in si_clear()
630 zstex->depth_clear_value = depth; in si_clear()
640 si_htile_enabled(zstex, zsbuf->u.tex.level, PIPE_MASK_S) && in si_clear()
641 (!zstex->tc_compatible_htile || stencil == 0)) { in si_clear()
646 if (!zstex->stencil_cleared || zstex->stencil_clear_value != stencil) { in si_clear()
650 if (zstex->stencil_clear_value != (uint8_t)stencil) { in si_clear()
652 zstex->stencil_clear_value = stencil; in si_clear()
672 zstex->depth_cleared = true; in si_clear()
679 zstex->stencil_cleared = true; in si_clear()