/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_framebuffer.c | 146 const unsigned cresolve_offset = ctx->fb_state.nr_cbufs + !!ctx->fb_state.zsbuf; in zink_get_framebuffer_imageless() 148 for (int i = 0; i < ctx->fb_state.nr_cbufs; i++) { in zink_get_framebuffer_imageless() 149 struct pipe_surface *psurf = ctx->fb_state.cbufs[i]; in zink_get_framebuffer_imageless() 163 state.num_attachments = ctx->fb_state.nr_cbufs; in zink_get_framebuffer_imageless() 165 if (ctx->fb_state.zsbuf) { in zink_get_framebuffer_imageless() 166 struct pipe_surface *psurf = ctx->fb_state.zsbuf; in zink_get_framebuffer_imageless() 182 state.width = MAX2(ctx->fb_state.width, 1); in zink_get_framebuffer_imageless() 183 state.height = MAX2(ctx->fb_state.height, 1); in zink_get_framebuffer_imageless() 184 state.layers = MAX2(util_framebuffer_get_num_layers(&ctx->fb_state), 1) - 1; in zink_get_framebuffer_imageless() 185 state.samples = ctx->fb_state.samples - 1; in zink_get_framebuffer_imageless() [all …]
|
D | zink_clear.c | 71 struct pipe_framebuffer_state *fb = &ctx->fb_state; in clear_in_rp() 199 struct pipe_framebuffer_state *fb = &ctx->fb_state; in zink_clear() 270 struct pipe_framebuffer_state *fb_state = &ctx->fb_state; in zink_clear_framebuffer() local 273 for (int i = 0; i < fb_state->nr_cbufs && clear_buffers >= PIPE_CLEAR_COLOR0; i++) { in zink_clear_framebuffer() 281 for (int i = 0; i < fb_state->nr_cbufs && clear_buffers >= PIPE_CLEAR_COLOR0; i++) { in zink_clear_framebuffer() 552 if (zink_fb_clear_needs_explicit(fb_clear) || !check_3d_layers(ctx->fb_state.cbufs[i])) in fb_clears_apply_internal() 556 struct pipe_surface *psurf = ctx->fb_state.cbufs[i]; in fb_clears_apply_internal() 568 if (zink_fb_clear_needs_explicit(fb_clear) || !check_3d_layers(ctx->fb_state.zsbuf)) in fb_clears_apply_internal() 572 struct pipe_surface *psurf = ctx->fb_state.zsbuf; in fb_clears_apply_internal() 604 for (int i = 0; i < ctx->fb_state.nr_cbufs; i++) { in zink_fb_clears_apply() [all …]
|
D | zink_context.c | 92 for (unsigned i = 0; i < ctx->fb_state.nr_cbufs; i++) in zink_context_destroy() 93 pipe_surface_release(&ctx->base, &ctx->fb_state.cbufs[i]); in zink_context_destroy() 94 pipe_surface_release(&ctx->base, &ctx->fb_state.zsbuf); in zink_context_destroy() 1852 if (ctx->fb_state.cbufs[0]) { in zink_update_fbfetch() 1853 VkImageView fbfetch = zink_csurface(ctx->fb_state.cbufs[0])->image_view; in zink_update_fbfetch() 1855 ctx->di.fbfetch.imageView = zink_csurface(ctx->fb_state.cbufs[0])->image_view; in zink_update_fbfetch() 1905 const struct pipe_framebuffer_state *fb = &ctx->fb_state; in get_render_pass() 2059 … return zink_csurface(ctx->dummy_surface[util_logbase2_ceil(ctx->fb_state.samples)])->image_view; in prep_fb_attachment() 2076 const unsigned cresolve_offset = ctx->fb_state.nr_cbufs + !!ctx->fb_state.zsbuf; in prep_fb_attachments() 2078 for (int i = 0; i < ctx->fb_state.nr_cbufs; i++) { in prep_fb_attachments() [all …]
|
D | zink_context.h | 217 struct pipe_framebuffer_state fb_state; member
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_blitter.c | 1796 struct pipe_framebuffer_state fb_state = {0}; in do_blits() local 1799 fb_state.width = dst->width; in do_blits() 1800 fb_state.height = dst->height; in do_blits() 1801 fb_state.nr_cbufs = is_zsbuf ? 0 : 1; in do_blits() 1803 blitter_set_dst_dimensions(ctx, fb_state.width, fb_state.height); in do_blits() 1811 fb_state.zsbuf = dst; in do_blits() 1813 fb_state.cbufs[0] = dst; in do_blits() 1815 pipe->set_framebuffer_state(pipe, &fb_state); in do_blits() 1863 fb_state.zsbuf = dst; in do_blits() 1865 fb_state.cbufs[0] = dst; in do_blits() [all …]
|
/third_party/mesa3d/src/gallium/drivers/i915/ |
D | i915_surface.c | 137 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/ |
D | vl_matrix_filter.c | 274 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()
|
D | vl_deint_filter.c | 443 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()
|
D | vl_median_filter.c | 378 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()
|
D | vl_bicubic_filter.c | 393 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()
|
D | vl_compositor_cs.c | 596 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()
|
D | vl_zscan.c | 508 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()
|
D | vl_idct.c | 641 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()
|
D | vl_mc.c | 571 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()
|
D | vl_zscan.h | 61 struct pipe_framebuffer_state fb_state; member
|
D | vl_compositor_gfx.c | 623 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()
|
D | vl_mc.h | 65 struct pipe_framebuffer_state fb_state; member
|
D | vl_idct.h | 65 struct pipe_framebuffer_state fb_state; member
|
D | vl_compositor.h | 109 struct pipe_framebuffer_state fb_state; member
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_blit.c | 76 util_blitter_save_framebuffer(r300->blitter, r300->fb_state.state); in r300_blitter_begin() 130 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_cbzb_clear_allowed() 143 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_fast_zclear_allowed() 151 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_hiz_clear_allowed() 184 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_set_clear_color() 256 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_clear() 459 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_clear_depth_stencil() 478 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_decompress_zmask() 514 util_copy_framebuffer_state(&saved_fb, r300->fb_state.state); in r300_decompress_zmask_locked() 544 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_resource_copy_region() [all …]
|
D | r300_context.c | 45 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_release_referenced_objects() 111 FREE(r300->fb_state.state); in r300_destroy_context() 177 R300_INIT_ATOM(fb_state, 0); in r300_setup_atoms() 235 R300_ALLOC_ATOM(fb_state, pipe_framebuffer_state); in r300_setup_atoms()
|
D | r300_emit.c | 43 (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() 1223 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_hiz_clear() 1245 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_zmask_clear() 1266 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_cmask_clear() 1309 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_emit_buffer_validate() 1318 if (r300->fb_state.dirty) { in r300_emit_buffer_validate()
|
D | r300_state.c | 571 struct pipe_framebuffer_state *fb = r300->fb_state.state; in r300_set_blend_color() 856 struct pipe_framebuffer_state *state = r300->fb_state.state; in r300_mark_fb_state_dirty() 859 r300_mark_atom_dirty(r300, &r300->fb_state); in r300_mark_fb_state_dirty() 879 r300->fb_state.size = 2 + (8 * state->nr_cbufs); in r300_mark_fb_state_dirty() 882 r300->fb_state.size += 10; in r300_mark_fb_state_dirty() 884 r300->fb_state.size += 10; in r300_mark_fb_state_dirty() 886 r300->fb_state.size += 8; in r300_mark_fb_state_dirty() 890 r300->fb_state.size += 6; in r300_mark_fb_state_dirty() 892 r300->fb_state.size += 3; in r300_mark_fb_state_dirty() 905 struct pipe_framebuffer_state *current_state = r300->fb_state.state; in r300_set_framebuffer_state() [all …]
|
D | r300_hyperz.c | 135 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_update_hyperz()
|
D | r300_context.h | 500 struct r300_atom fb_state; member
|