Lines Matching defs:clear
141 /* DCC fast clear only:
190 /* If we want to clear without needing a fast clear eliminate step, we
194 bool values[4] = {}; /* whether to clear to 0 or 1 */
195 bool color_value = false; /* clear color to 0 or 1 */
196 bool alpha_value = false; /* clear alpha to 0 or 1 */
204 /* 128-bit fast clear with different R,G,B values is unsupported. */
230 /* Use the maximum value for clamping the clear color. */
238 /* Use the maximum value for clamping the clear color. */
276 * On chips predating Raven2, the DCC clear codes and the CB clear
431 * the clear. GFX11 doesn't need that.
452 /* TODO: Implement DCC fast clear for level 0 of mipmapped textures. Mipmapped
453 * DCC has to clear a rectangular area of DCC for level 0 (because the whole miptree
459 /* 4x and 8x MSAA need to clear only sample 0 and 1 in a compute shader and leave other
471 /* If this is 0, fast clear isn't possible. (can occur with MSAA) */
475 /* Layered 4x and 8x MSAA DCC fast clears need to clear
477 * would be more efficient than separate per-layer clear operations.
626 * For a fast clear, zMin == zMax == clearValue. This means that the base will
627 * always be the clear value (converted to 14-bit UINT).
636 * For fast-clear, the default value of sr0 and sr1 are both 0x3.
682 /* Gather information about what to clear. */
691 /* the clear is allowed if all layers are bound */
697 /* We can change the micro tile mode before a full clear. */
716 /* Use a slow clear for small surfaces where the cost of
718 * clear. The closed driver does this, but the numbers may differ.
727 /* Try to clear DCC first, otherwise try CMASK. */
745 /* Shared textures can't use fast clear without an explicit flush
746 * because the clear color is not exported.
748 * Chips without DCC constant encoding must set the clear color registers
749 * correctly even if the fast clear eliminate pass is not needed.
759 /* We can clear any level, but we only set up the clear value registers for the first
760 * level. Therefore, all other levels can be cleared only if the clear value registers
761 * are not used, which is only the case with DCC constant encoding and 0/1 clear values.
780 /* DCC fast clear with MSAA should clear CMASK to 0xC. */
797 /* Shared textures can't use fast clear without an explicit flush
798 * because the clear color is not exported.
812 /* RB+ doesn't work with CMASK fast clear on Stoney. */
816 /* Disable fast clear if tex is encrypted */
847 /* TODO: Implement CMASK fast clear for level 0 of mipmapped textures. Mipmapped
848 * CMASK has to clear a rectangular area of CMASK for level 0 (because the whole
868 /* Do the fast clear. */
886 /* Chips with DCC constant encoding don't need to set the clear
887 * color registers for DCC clear values 0 and 1.
892 /* There are no clear color registers on GFX11. */
920 /* The conversion from TC-incompatible to TC-compatible can only be done in one clear. */
936 /* Perform the clear here if possible, else clear to uncompressed. */
941 /* Z-only clear. */
951 /* Combined Z+S clear. */
980 /* This is where the HTILE buffer clear is done.
982 * If there is no clear scheduled and the framebuffer size is too small, we should use
983 * the draw-based clear that is without waits. If there is some other clear scheduled,
984 * we will have to wait anyway, so add the HTILE buffer clear to the batch here.
990 /* Determine the HTILE subset to clear. */
992 /* This can only clear a layered texture with 1 level or a mipmap texture
1004 /* This can only clear a layered texture with 1 level. Other cases are
1011 /* Perform the clear if it's possible. */
1015 /* Z-only clear. */
1029 /* Combined Z+S clear. */
1042 /* Z-only or S-only clear when both Z/S are present using a read-modify-write
1046 * the draw-based fast clear to do both at the same time.
1054 /* Z-only clear with stencil left intact. */
1067 /* Stencil-only clear with depth left intact. */
1112 /* Unset clear flags for non-existent buffers. */
1127 /* These buffers cannot use fast clear, make sure to disable expansion. */
1222 /* This is worth it only if it's a whole image clear, so that we just clear DCC/HTILE. */
1228 /* pipe->clear honors render_condition, so only use it if it's unset or if it's set and enabled. */
1247 ctx->clear(ctx, buffers, NULL, color, depth, stencil);
1321 unsigned clear;
1326 clear = PIPE_CLEAR_DEPTH;
1330 clear |= PIPE_CLEAR_STENCIL;
1334 si_clear_depth_stencil(pipe, sf, clear, depth, stencil, box->x, box->y, box->width,
1358 sctx->b.clear = si_clear;