Lines Matching defs:clear
2288 /* these need actual clear calls inside the rp */
2289 struct zink_framebuffer_clear_data *clear = zink_fb_clear_element(&ctx->fb_clears[i], 0);
2293 zink_fb_clear_element_needs_explicit(clear))
2296 /* we now know there's one clear that can be done here */
2297 memcpy(&ctx->dynamic_fb.attachments[i].clearValue, &clear->color, sizeof(float) * 4);
2302 struct zink_framebuffer_clear_data *clear = zink_fb_clear_element(fb_clear, 0);
2303 if (!zink_fb_clear_element_needs_explicit(clear)) {
2304 /* base zs clear info */
2305 ctx->dynamic_fb.attachments[PIPE_MAX_COLOR_BUFS].clearValue.depthStencil.depth = clear->zs.depth;
2306 ctx->dynamic_fb.attachments[PIPE_MAX_COLOR_BUFS].clearValue.depthStencil.stencil = clear->zs.stencil;
2308 ctx->dynamic_fb.attachments[PIPE_MAX_COLOR_BUFS+1].clearValue.depthStencil.stencil = clear->zs.stencil;
2310 /* initiate a depth clear */
2313 /* use a stencil clear, also set stencil attachment */
2318 for (int j = !zink_fb_clear_element_needs_explicit(clear);
2378 ctx->base.clear(&ctx->base, ctx->void_clears, NULL, &color, 0, 0);
4479 ctx->base.clear = zink_clear;