Home
last modified time | relevance | path

Searched refs:fb_clear (Results 1 – 4 of 4) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_clear.c122 add_new_clear(struct zink_framebuffer_clear *fb_clear) in add_new_clear() argument
125 util_dynarray_append(&fb_clear->clears, struct zink_framebuffer_clear_data, cd); in add_new_clear()
126 return zink_fb_clear_element(fb_clear, zink_fb_clear_count(fb_clear) - 1); in add_new_clear()
130 get_clear_data(struct zink_context *ctx, struct zink_framebuffer_clear *fb_clear, const struct pipe… in get_clear_data() argument
132 unsigned num_clears = zink_fb_clear_count(fb_clear); in get_clear_data()
134 … struct zink_framebuffer_clear_data *last_clear = zink_fb_clear_element(fb_clear, num_clears - 1); in get_clear_data()
139 return add_new_clear(fb_clear); in get_clear_data()
254 struct zink_framebuffer_clear *fb_clear = &ctx->fb_clears[i]; in zink_clear() local
255 unsigned num_clears = zink_fb_clear_count(fb_clear); in zink_clear()
257 if (zink_fb_clear_first_needs_explicit(fb_clear)) { in zink_clear()
[all …]
Dzink_clear.h86 zink_fb_clear_needs_explicit(struct zink_framebuffer_clear *fb_clear);
89 zink_fb_clear_first_needs_explicit(struct zink_framebuffer_clear *fb_clear);
95 zink_fb_clear_element(struct zink_framebuffer_clear *fb_clear, int idx) in zink_fb_clear_element() argument
97 return util_dynarray_element(&fb_clear->clears, struct zink_framebuffer_clear_data, idx); in zink_fb_clear_element()
101 zink_fb_clear_count(struct zink_framebuffer_clear *fb_clear) in zink_fb_clear_count() argument
103 …return fb_clear ? util_dynarray_num_elements(&fb_clear->clears, struct zink_framebuffer_clear_data… in zink_fb_clear_count()
Dzink_render_pass.c329 struct zink_framebuffer_clear *fb_clear = &ctx->fb_clears[PIPE_MAX_COLOR_BUFS]; in zink_init_zs_attachment() local
334 !zink_fb_clear_first_needs_explicit(fb_clear) && in zink_init_zs_attachment()
335 … (zink_fb_clear_element(fb_clear, 0)->zs.bits & PIPE_CLEAR_DEPTH); in zink_init_zs_attachment()
337 !zink_fb_clear_first_needs_explicit(fb_clear) && in zink_init_zs_attachment()
338 … (zink_fb_clear_element(fb_clear, 0)->zs.bits & PIPE_CLEAR_STENCIL); in zink_init_zs_attachment()
344 …nk_fb_clear_enabled(ctx, PIPE_MAX_COLOR_BUFS) && (zink_fb_clear_element(fb_clear, 0)->zs.bits & PI… in zink_init_zs_attachment()
347 …nk_fb_clear_enabled(ctx, PIPE_MAX_COLOR_BUFS) && (zink_fb_clear_element(fb_clear, 0)->zs.bits & PI… in zink_init_zs_attachment()
604 struct zink_framebuffer_clear *fb_clear = &ctx->fb_clears[PIPE_MAX_COLOR_BUFS]; in begin_render_pass() local
605 struct zink_framebuffer_clear_data *clear = zink_fb_clear_element(fb_clear, 0); in begin_render_pass()
613 if (zink_fb_clear_needs_explicit(fb_clear)) { in begin_render_pass()
[all …]
Dzink_context.c2301 struct zink_framebuffer_clear *fb_clear = &ctx->fb_clears[PIPE_MAX_COLOR_BUFS]; in begin_rendering() local
2302 struct zink_framebuffer_clear_data *clear = zink_fb_clear_element(fb_clear, 0); in begin_rendering()
2309 if ((zink_fb_clear_element(fb_clear, 0)->zs.bits & PIPE_CLEAR_DEPTH)) in begin_rendering()
2312 if ((zink_fb_clear_element(fb_clear, 0)->zs.bits & PIPE_CLEAR_STENCIL)) { in begin_rendering()
2317 if (zink_fb_clear_needs_explicit(fb_clear)) { in begin_rendering()
2319 …buffers & PIPE_CLEAR_DEPTHSTENCIL) != PIPE_CLEAR_DEPTHSTENCIL && j < zink_fb_clear_count(fb_clear); in begin_rendering()
2321 clear_buffers |= zink_fb_clear_element(fb_clear, j)->zs.bits; in begin_rendering()