Lines Matching defs:depth
532 default: /* depth */
551 default: /* depth, thick */
586 default: /* depth, thick */
597 static uint32_t si_get_htile_clear_value(struct si_texture *tex, float depth)
607 const uint32_t zmin = lroundf(depth * max_z_value);
647 static bool si_can_fast_clear_depth(struct si_texture *zstex, unsigned level, float depth,
650 /* TC-compatible HTILE only supports depth clears to 0 or 1. */
653 (!zstex->tc_compatible_htile || depth == 0 || depth == 1);
666 const union pipe_color_union *color, float depth, uint8_t stencil)
916 /* If both depth and stencil are present, they must be cleared together. */
940 if (si_can_fast_clear_depth(zstex, level, depth, *buffers)) {
942 clear_value = si_get_htile_clear_value(zstex, depth);
949 if (si_can_fast_clear_depth(zstex, level, depth, *buffers) &&
952 clear_value = si_get_htile_clear_value(zstex, depth);
1014 si_can_fast_clear_depth(zstex, level, depth, *buffers)) {
1018 htile_size, si_get_htile_clear_value(zstex, depth));
1027 si_can_fast_clear_depth(zstex, level, depth, *buffers) &&
1032 htile_size, si_get_htile_clear_value(zstex, depth));
1053 si_can_fast_clear_depth(zstex, level, depth, *buffers)) {
1057 htile_size, si_get_htile_clear_value(zstex, depth),
1067 /* Stencil-only clear with depth left intact. */
1070 htile_size, si_get_htile_clear_value(zstex, depth),
1083 zstex->depth_clear_value[level] != (float)depth) {
1084 zstex->depth_clear_value[level] = depth;
1104 const union pipe_color_union *color, double depth, unsigned stencil)
1122 si_fast_clear(sctx, &buffers, color, depth, stencil);
1141 if (si_can_fast_clear_depth(zstex, level, depth, buffers)) {
1145 zstex->depth_clear_value[level] != depth) {
1149 if (zstex->depth_clear_value[level] != (float)depth) {
1150 if ((zstex->depth_clear_value[level] != 0) != (depth != 0)) {
1156 zstex->depth_clear_value[level] = depth;
1197 buffers, color, depth, stencil, sctx->framebuffer.nr_samples > 1);
1220 float depth, unsigned stencil)
1247 ctx->clear(ctx, buffers, NULL, color, depth, stencil);
1285 unsigned clear_flags, double depth, unsigned stencil,
1294 clear_flags, &unused, depth, stencil))
1299 util_blitter_clear_depth_stencil(sctx->blitter, dst, clear_flags, depth, stencil, dstx, dsty,
1314 tmpl.u.tex.last_layer = box->z + box->depth - 1;
1322 float depth;
1327 util_format_unpack_z_float(tex->format, &depth, data, 1);
1334 si_clear_depth_stencil(pipe, sf, clear, depth, stencil, box->x, box->y, box->width,