Home
last modified time | relevance | path

Searched refs:fb_state (Results 1 – 25 of 36) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_clear.c55 struct pipe_framebuffer_state *fb = &ctx->fb_state; in clear_in_rp()
188 struct pipe_framebuffer_state *fb = &ctx->fb_state; in zink_clear()
209 unsigned w = ctx->fb_state.width; in zink_clear()
210 unsigned h = ctx->fb_state.height; in zink_clear()
218 for (unsigned i = 0; i < ctx->fb_state.nr_cbufs; i++) { in zink_clear()
219 if (ctx->fb_state.cbufs[i] && in zink_clear()
225 pctx->clear_render_target(pctx, ctx->fb_state.cbufs[i], &color, in zink_clear()
227 … ctx->fb_state.cbufs[i]->width, ctx->fb_state.cbufs[i]->height, in zink_clear()
230 pctx->clear_render_target(pctx, ctx->fb_state.cbufs[i], pcolor, in zink_clear()
234 if (ctx->fb_state.zsbuf && (buffers & PIPE_CLEAR_DEPTHSTENCIL)) in zink_clear()
[all …]
Dzink_render_pass.c327 const struct pipe_framebuffer_state *fb = &ctx->fb_state; in zink_init_zs_attachment()
360 const struct pipe_framebuffer_state *fb = &ctx->fb_state; in zink_init_color_attachment()
381 const struct pipe_framebuffer_state *fb = &ctx->fb_state; in get_render_pass()
539 const unsigned cresolve_offset = ctx->fb_state.nr_cbufs + !!ctx->fb_state.zsbuf; in prep_fb_attachments()
541 for (int i = 0; i < ctx->fb_state.nr_cbufs; i++) { in prep_fb_attachments()
542 struct zink_surface *surf = zink_csurface(ctx->fb_state.cbufs[i]); in prep_fb_attachments()
543 struct zink_surface *transient = zink_transient_surface(ctx->fb_state.cbufs[i]); in prep_fb_attachments()
555 if (ctx->fb_state.zsbuf) { in prep_fb_attachments()
556 struct zink_surface *surf = zink_csurface(ctx->fb_state.zsbuf); in prep_fb_attachments()
557 struct zink_surface *transient = zink_transient_surface(ctx->fb_state.zsbuf); in prep_fb_attachments()
[all …]
Dzink_framebuffer.c152 state.num_attachments = ctx->fb_state.nr_cbufs; in zink_get_framebuffer()
154 const unsigned cresolve_offset = ctx->fb_state.nr_cbufs + !!ctx->fb_state.zsbuf; in zink_get_framebuffer()
156 for (int i = 0; i < ctx->fb_state.nr_cbufs; i++) { in zink_get_framebuffer()
157 struct pipe_surface *psurf = ctx->fb_state.cbufs[i]; in zink_get_framebuffer()
172 if (ctx->fb_state.zsbuf) { in zink_get_framebuffer()
173 struct pipe_surface *psurf = ctx->fb_state.zsbuf; in zink_get_framebuffer()
189 state.width = MAX2(ctx->fb_state.width, 1); in zink_get_framebuffer()
190 state.height = MAX2(ctx->fb_state.height, 1); in zink_get_framebuffer()
191 state.layers = MAX2(zink_framebuffer_get_num_layers(&ctx->fb_state), 1) - 1; in zink_get_framebuffer()
192 state.samples = ctx->fb_state.samples - 1; in zink_get_framebuffer()
Dzink_kopper.c870 if (!ctx->fb_state.zsbuf) in zink_kopper_fixup_depth_buffer()
873 assert(ctx->fb_state.zsbuf->texture->bind & PIPE_BIND_DISPLAY_TARGET); in zink_kopper_fixup_depth_buffer()
875 struct zink_resource *res = zink_resource(ctx->fb_state.zsbuf->texture); in zink_kopper_fixup_depth_buffer()
876 struct zink_surface *surf = zink_csurface(ctx->fb_state.zsbuf); in zink_kopper_fixup_depth_buffer()
877 struct zink_ctx_surface *csurf = (struct zink_ctx_surface*)ctx->fb_state.zsbuf; in zink_kopper_fixup_depth_buffer()
878 if (surf->info.width == ctx->fb_state.width && in zink_kopper_fixup_depth_buffer()
879 surf->info.height == ctx->fb_state.height) in zink_kopper_fixup_depth_buffer()
882 struct pipe_resource templ = *ctx->fb_state.zsbuf->texture; in zink_kopper_fixup_depth_buffer()
883 templ.width0 = ctx->fb_state.width; in zink_kopper_fixup_depth_buffer()
884 templ.height0 = ctx->fb_state.height; in zink_kopper_fixup_depth_buffer()
[all …]
Dzink_context.c123 for (unsigned i = 0; i < ctx->fb_state.nr_cbufs; i++) in zink_context_destroy()
124 pipe_surface_release(&ctx->base, &ctx->fb_state.cbufs[i]); in zink_context_destroy()
125 pipe_surface_release(&ctx->base, &ctx->fb_state.zsbuf); in zink_context_destroy()
2149 if (ctx->fb_state.cbufs[0]) { in zink_update_fbfetch()
2150 VkImageView fbfetch = zink_csurface(ctx->fb_state.cbufs[0])->image_view; in zink_update_fbfetch()
2155 ctx->di.fbfetch.imageView = zink_csurface(ctx->fb_state.cbufs[0])->image_view; in zink_update_fbfetch()
2157 bool fbfetch_ms = ctx->fb_state.cbufs[0]->texture->nr_samples > 1; in zink_update_fbfetch()
2223 for (int i = 0; i < ctx->fb_state.nr_cbufs; i++) { in begin_rendering()
2224 struct zink_surface *surf = zink_csurface(ctx->fb_state.cbufs[i]); in begin_rendering()
2250 if (ctx->fb_state.zsbuf) { in begin_rendering()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_blitter.c1866 struct pipe_framebuffer_state fb_state = {0}; in do_blits() local
1869 fb_state.width = dst->width; in do_blits()
1870 fb_state.height = dst->height; in do_blits()
1871 fb_state.nr_cbufs = is_zsbuf ? 0 : 1; in do_blits()
1873 blitter_set_dst_dimensions(ctx, fb_state.width, fb_state.height); in do_blits()
1881 fb_state.zsbuf = dst; in do_blits()
1883 fb_state.cbufs[0] = dst; in do_blits()
1885 pipe->set_framebuffer_state(pipe, &fb_state); in do_blits()
1935 fb_state.zsbuf = dst; in do_blits()
1937 fb_state.cbufs[0] = dst; in do_blits()
[all …]
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_surface.c137 struct pipe_framebuffer_state fb_state; in i915_clear_render_target_render() local
141 fb_state.width = dst->width; in i915_clear_render_target_render()
142 fb_state.height = dst->height; in i915_clear_render_target_render()
143 fb_state.nr_cbufs = 1; in i915_clear_render_target_render()
144 fb_state.cbufs[0] = dst; in i915_clear_render_target_render()
145 fb_state.zsbuf = NULL; in i915_clear_render_target_render()
146 pipe->set_framebuffer_state(pipe, &fb_state); in i915_clear_render_target_render()
167 struct pipe_framebuffer_state fb_state; in i915_clear_depth_stencil_render() local
171 fb_state.width = dst->width; in i915_clear_depth_stencil_render()
172 fb_state.height = dst->height; in i915_clear_depth_stencil_render()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/vl/
Dvl_matrix_filter.c274 struct pipe_framebuffer_state fb_state; in vl_matrix_filter_render() local
287 memset(&fb_state, 0, sizeof(fb_state)); in vl_matrix_filter_render()
288 fb_state.width = dst->width; in vl_matrix_filter_render()
289 fb_state.height = dst->height; in vl_matrix_filter_render()
290 fb_state.nr_cbufs = 1; in vl_matrix_filter_render()
291 fb_state.cbufs[0] = dst; in vl_matrix_filter_render()
301 filter->pipe->set_framebuffer_state(filter->pipe, &fb_state); in vl_matrix_filter_render()
Dvl_deint_filter.c443 struct pipe_framebuffer_state fb_state; in vl_deint_filter_render() local
481 memset(&fb_state, 0, sizeof(fb_state)); in vl_deint_filter_render()
482 fb_state.nr_cbufs = 1; in vl_deint_filter_render()
496 fb_state.width = blit_surf->texture->width0; in vl_deint_filter_render()
497 fb_state.height = blit_surf->texture->height0; in vl_deint_filter_render()
508 fb_state.cbufs[0] = blit_surf; in vl_deint_filter_render()
510 filter->pipe->set_framebuffer_state(filter->pipe, &fb_state); in vl_deint_filter_render()
515 fb_state.cbufs[0] = dst_surf; in vl_deint_filter_render()
516 filter->pipe->set_framebuffer_state(filter->pipe, &fb_state); in vl_deint_filter_render()
Dvl_median_filter.c378 struct pipe_framebuffer_state fb_state; in vl_median_filter_render() local
391 memset(&fb_state, 0, sizeof(fb_state)); in vl_median_filter_render()
392 fb_state.width = dst->width; in vl_median_filter_render()
393 fb_state.height = dst->height; in vl_median_filter_render()
394 fb_state.nr_cbufs = 1; in vl_median_filter_render()
395 fb_state.cbufs[0] = dst; in vl_median_filter_render()
405 filter->pipe->set_framebuffer_state(filter->pipe, &fb_state); in vl_median_filter_render()
Dvl_bicubic_filter.c393 struct pipe_framebuffer_state fb_state; in vl_bicubic_filter_render() local
443 memset(&fb_state, 0, sizeof(fb_state)); in vl_bicubic_filter_render()
444 fb_state.width = dst->width; in vl_bicubic_filter_render()
445 fb_state.height = dst->height; in vl_bicubic_filter_render()
446 fb_state.nr_cbufs = 1; in vl_bicubic_filter_render()
447 fb_state.cbufs[0] = dst; in vl_bicubic_filter_render()
462 filter->pipe->set_framebuffer_state(filter->pipe, &fb_state); in vl_bicubic_filter_render()
Dvl_compositor_cs.c596 image.resource = c->fb_state.cbufs[0]->texture; in cs_launch()
598 image.format = c->fb_state.cbufs[0]->texture->format; in cs_launch()
784 c->fb_state.width = dst_surface->width; in vl_compositor_cs_render()
785 c->fb_state.height = dst_surface->height; in vl_compositor_cs_render()
786 c->fb_state.cbufs[0] = dst_surface; in vl_compositor_cs_render()
Dvl_zscan.c508 buffer->fb_state.width = dst->width; in vl_zscan_init_buffer()
509 buffer->fb_state.height = dst->height; in vl_zscan_init_buffer()
510 buffer->fb_state.nr_cbufs = 1; in vl_zscan_init_buffer()
511 pipe_surface_reference(&buffer->fb_state.cbufs[0], dst); in vl_zscan_init_buffer()
546 pipe_surface_reference(&buffer->fb_state.cbufs[0], NULL); in vl_zscan_cleanup_buffer()
608 zscan->pipe->set_framebuffer_state(zscan->pipe, &buffer->fb_state); in vl_zscan_render()
Dvl_idct.c641 buffer->fb_state.width = tex->width0; in init_intermediate()
642 buffer->fb_state.height = tex->height0; in init_intermediate()
643 buffer->fb_state.nr_cbufs = idct->nr_of_render_targets; in init_intermediate()
649 buffer->fb_state.cbufs[i] = idct->pipe->create_surface( in init_intermediate()
652 if (!buffer->fb_state.cbufs[i]) in init_intermediate()
668 pipe_surface_reference(&buffer->fb_state.cbufs[i], NULL); in init_intermediate()
681 pipe_surface_reference(&buffer->fb_state.cbufs[i], NULL); in cleanup_intermediate()
849 idct->pipe->set_framebuffer_state(idct->pipe, &buffer->fb_state); in vl_idct_flush()
Dvl_mc.c571 buffer->fb_state.nr_cbufs = 1; in vl_mc_init_buffer()
572 buffer->fb_state.zsbuf = NULL; in vl_mc_init_buffer()
593 buffer->fb_state.width = surface->width; in vl_mc_set_surface()
594 buffer->fb_state.height = surface->height; in vl_mc_set_surface()
595 buffer->fb_state.cbufs[0] = surface; in vl_mc_set_surface()
610 renderer->pipe->set_framebuffer_state(renderer->pipe, &buffer->fb_state); in prepare_pipe_4_rendering()
Dvl_compositor_gfx.c623 layer->viewport.scale[0] = c->fb_state.width; in gen_vertex_data()
624 layer->viewport.scale[1] = c->fb_state.height; in gen_vertex_data()
695 c->fb_state.width = dst_surface->width; in vl_compositor_gfx_render()
696 c->fb_state.height = dst_surface->height; in vl_compositor_gfx_render()
697 c->fb_state.cbufs[0] = dst_surface; in vl_compositor_gfx_render()
718 c->pipe->set_framebuffer_state(c->pipe, &c->fb_state); in vl_compositor_gfx_render()
Dvl_zscan.h61 struct pipe_framebuffer_state fb_state; member
Dvl_mc.h65 struct pipe_framebuffer_state fb_state; member
Dvl_idct.h65 struct pipe_framebuffer_state fb_state; member
Dvl_compositor.h109 struct pipe_framebuffer_state fb_state; member
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_blit.c85 util_blitter_save_framebuffer(r300->blitter, r300->fb_state.state); in r300_blitter_begin()
139 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_cbzb_clear_allowed()
152 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_fast_zclear_allowed()
160 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_hiz_clear_allowed()
193 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_set_clear_color()
265 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_clear()
468 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_clear_depth_stencil()
487 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_decompress_zmask()
523 util_copy_framebuffer_state(&saved_fb, r300->fb_state.state); in r300_decompress_zmask_locked()
553 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_resource_copy_region()
[all …]
Dr300_context.c44 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_release_referenced_objects()
110 FREE(r300->fb_state.state); in r300_destroy_context()
176 R300_INIT_ATOM(fb_state, 0); in r300_setup_atoms()
234 R300_ALLOC_ATOM(fb_state, pipe_framebuffer_state); in r300_setup_atoms()
Dr300_emit.c43 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_blend_state()
85 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_dsa_state()
340 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_gpu_flush()
590 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_fb_state_pipelined()
1222 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_hiz_clear()
1244 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_zmask_clear()
1265 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_cmask_clear()
1308 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_buffer_validate()
1317 if (r300->fb_state.dirty) { in r300_emit_buffer_validate()
Dr300_state.c573 struct pipe_framebuffer_state *fb = r300->fb_state.state; in r300_set_blend_color()
858 struct pipe_framebuffer_state *state = r300->fb_state.state; in r300_mark_fb_state_dirty()
861 r300_mark_atom_dirty(r300, &r300->fb_state); in r300_mark_fb_state_dirty()
881 r300->fb_state.size = 2 + (8 * state->nr_cbufs); in r300_mark_fb_state_dirty()
884 r300->fb_state.size += 10; in r300_mark_fb_state_dirty()
886 r300->fb_state.size += 10; in r300_mark_fb_state_dirty()
888 r300->fb_state.size += 8; in r300_mark_fb_state_dirty()
892 r300->fb_state.size += 6; in r300_mark_fb_state_dirty()
894 r300->fb_state.size += 3; in r300_mark_fb_state_dirty()
907 struct pipe_framebuffer_state *current_state = r300->fb_state.state; in r300_set_framebuffer_state()
[all …]
Dr300_hyperz.c135 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_update_hyperz()

12