Lines Matching refs:clear

135       /* if we're completely overwriting the previous clear, merge this into the previous clear */
203 * so iterate over all the mismatched attachments and pre-clear them separately,
258 /* a scissored clear exists:
259 * - extend the clear array
261 * - inject void clear base of array
264 struct zink_framebuffer_clear_data *clear = fb_clear->clears.data;
265 memcpy(clear + 1, clear, num_clears);
266 memcpy(&clear->color, &color, sizeof(color));
268 /* no void clear needed */
275 pctx->clear(pctx, void_clears, NULL, &color, 0, 0);
284 struct zink_framebuffer_clear_data *clear = get_clear_data(ctx, fb_clear, needs_rp ? scissor_state : NULL);
287 clear->conditional = ctx->render_condition_active;
288 clear->has_scissor = needs_rp;
290 clear->scissor = *scissor_state;
292 clamp_color(desc, &clear->color, pcolor, i);
303 struct zink_framebuffer_clear_data *clear = get_clear_data(ctx, fb_clear, needs_rp ? scissor_state : NULL);
305 clear->conditional = ctx->render_condition_active;
306 clear->has_scissor = needs_rp;
308 clear->scissor = *scissor_state;
310 clear->zs.depth = depth;
312 clear->zs.stencil = stencil;
313 clear->zs.bits |= (buffers & PIPE_CLEAR_DEPTHSTENCIL);
346 /* these need actual clear calls inside the rp */
350 /* different number of clears -> do another clear */
397 struct zink_framebuffer_clear_data *clear = zink_fb_clear_element(color_clear, j);
406 clear->has_scissor ? &clear->scissor : NULL,
407 &clear->color,
413 struct zink_framebuffer_clear_data *clear = zink_fb_clear_element(zs_clear, j);
414 zink_clear(&ctx->base, clear->zs.bits,
415 clear->has_scissor ? &clear->scissor : NULL,
417 clear->zs.depth,
418 clear->zs.stencil);
472 pctx->clear(pctx, PIPE_CLEAR_COLOR0, &scissor, &color, 0, 0);
492 pctx->clear(pctx, flags, &scissor, NULL, depth, stencil);
561 pctx->clear(pctx, PIPE_CLEAR_COLOR0, &scissor, color, 0, 0);
590 pctx->clear(pctx, clear_flags, &scissor, NULL, depth, stencil);
686 struct zink_framebuffer_clear_data *clear = zink_fb_clear_element(fb_clear, j);
687 if (clear->conditional) {
717 struct zink_framebuffer_clear_data *clear = zink_fb_clear_element(fb_clear, j);
718 struct u_rect scissor = {clear->scissor.minx, clear->scissor.maxx,
719 clear->scissor.miny, clear->scissor.maxy};
720 if (!clear->has_scissor || zink_blit_region_covers(region, scissor)) {
721 /* this is a clear that isn't fully covered by our pending write */