Home
last modified time | relevance | path

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

12

/external/virglrenderer/tests/
Dtest_virgl_cmd.c82 struct pipe_framebuffer_state fb_state; in START_TEST() local
107 fb_state.nr_cbufs = 1; in START_TEST()
108 fb_state.zsbuf = NULL; in START_TEST()
109 fb_state.cbufs[0] = &surf.base; in START_TEST()
110 virgl_encoder_set_framebuffer_state(&ctx, &fb_state); in START_TEST()
153 struct pipe_framebuffer_state fb_state; in START_TEST() local
184 fb_state.nr_cbufs = 1; in START_TEST()
185 fb_state.zsbuf = NULL; in START_TEST()
186 fb_state.cbufs[0] = &surf.base; in START_TEST()
187 virgl_encoder_set_framebuffer_state(&ctx, &fb_state); in START_TEST()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_surface.c141 struct pipe_framebuffer_state fb_state; in i915_clear_render_target_render() local
145 fb_state.width = dst->width; in i915_clear_render_target_render()
146 fb_state.height = dst->height; in i915_clear_render_target_render()
147 fb_state.nr_cbufs = 1; in i915_clear_render_target_render()
148 fb_state.cbufs[0] = dst; in i915_clear_render_target_render()
149 fb_state.zsbuf = NULL; in i915_clear_render_target_render()
150 pipe->set_framebuffer_state(pipe, &fb_state); in i915_clear_render_target_render()
174 struct pipe_framebuffer_state fb_state; in i915_clear_depth_stencil_render() local
178 fb_state.width = dst->width; in i915_clear_depth_stencil_render()
179 fb_state.height = dst->height; in i915_clear_depth_stencil_render()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_blitter.c1788 struct pipe_framebuffer_state fb_state = {0}; in do_blits() local
1791 fb_state.width = dst->width; in do_blits()
1792 fb_state.height = dst->height; in do_blits()
1793 fb_state.nr_cbufs = is_zsbuf ? 0 : 1; in do_blits()
1795 blitter_set_dst_dimensions(ctx, fb_state.width, fb_state.height); in do_blits()
1803 fb_state.zsbuf = dst; in do_blits()
1805 fb_state.cbufs[0] = dst; in do_blits()
1807 pipe->set_framebuffer_state(pipe, &fb_state); in do_blits()
1855 fb_state.zsbuf = dst; in do_blits()
1857 fb_state.cbufs[0] = dst; in do_blits()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_matrix_filter.c274 struct pipe_framebuffer_state fb_state; in vl_matrix_filter_render() local
283 memset(&fb_state, 0, sizeof(fb_state)); in vl_matrix_filter_render()
284 fb_state.width = dst->width; in vl_matrix_filter_render()
285 fb_state.height = dst->height; in vl_matrix_filter_render()
286 fb_state.nr_cbufs = 1; in vl_matrix_filter_render()
287 fb_state.cbufs[0] = dst; in vl_matrix_filter_render()
297 filter->pipe->set_framebuffer_state(filter->pipe, &fb_state); in vl_matrix_filter_render()
Dvl_median_filter.c378 struct pipe_framebuffer_state fb_state; in vl_median_filter_render() local
387 memset(&fb_state, 0, sizeof(fb_state)); in vl_median_filter_render()
388 fb_state.width = dst->width; in vl_median_filter_render()
389 fb_state.height = dst->height; in vl_median_filter_render()
390 fb_state.nr_cbufs = 1; in vl_median_filter_render()
391 fb_state.cbufs[0] = dst; in vl_median_filter_render()
401 filter->pipe->set_framebuffer_state(filter->pipe, &fb_state); in vl_median_filter_render()
Dvl_deint_filter.c443 struct pipe_framebuffer_state fb_state; in vl_deint_filter_render() local
477 memset(&fb_state, 0, sizeof(fb_state)); in vl_deint_filter_render()
478 fb_state.nr_cbufs = 1; in vl_deint_filter_render()
492 fb_state.width = blit_surf->texture->width0; in vl_deint_filter_render()
493 fb_state.height = blit_surf->texture->height0; in vl_deint_filter_render()
503 fb_state.cbufs[0] = blit_surf; in vl_deint_filter_render()
505 filter->pipe->set_framebuffer_state(filter->pipe, &fb_state); in vl_deint_filter_render()
510 fb_state.cbufs[0] = dst_surf; in vl_deint_filter_render()
511 filter->pipe->set_framebuffer_state(filter->pipe, &fb_state); in vl_deint_filter_render()
Dvl_bicubic_filter.c393 struct pipe_framebuffer_state fb_state; in vl_bicubic_filter_render() local
439 memset(&fb_state, 0, sizeof(fb_state)); in vl_bicubic_filter_render()
440 fb_state.width = dst->width; in vl_bicubic_filter_render()
441 fb_state.height = dst->height; in vl_bicubic_filter_render()
442 fb_state.nr_cbufs = 1; in vl_bicubic_filter_render()
443 fb_state.cbufs[0] = dst; in vl_bicubic_filter_render()
458 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.c504 buffer->fb_state.width = dst->width; in vl_zscan_init_buffer()
505 buffer->fb_state.height = dst->height; in vl_zscan_init_buffer()
506 buffer->fb_state.nr_cbufs = 1; in vl_zscan_init_buffer()
507 pipe_surface_reference(&buffer->fb_state.cbufs[0], dst); in vl_zscan_init_buffer()
542 pipe_surface_reference(&buffer->fb_state.cbufs[0], NULL); in vl_zscan_cleanup_buffer()
604 zscan->pipe->set_framebuffer_state(zscan->pipe, &buffer->fb_state); in vl_zscan_render()
Dvl_mc.c567 buffer->fb_state.nr_cbufs = 1; in vl_mc_init_buffer()
568 buffer->fb_state.zsbuf = NULL; in vl_mc_init_buffer()
589 buffer->fb_state.width = surface->width; in vl_mc_set_surface()
590 buffer->fb_state.height = surface->height; in vl_mc_set_surface()
591 buffer->fb_state.cbufs[0] = surface; in vl_mc_set_surface()
606 renderer->pipe->set_framebuffer_state(renderer->pipe, &buffer->fb_state); in prepare_pipe_4_rendering()
Dvl_idct.c637 buffer->fb_state.width = tex->width0; in init_intermediate()
638 buffer->fb_state.height = tex->height0; in init_intermediate()
639 buffer->fb_state.nr_cbufs = idct->nr_of_render_targets; in init_intermediate()
645 buffer->fb_state.cbufs[i] = idct->pipe->create_surface( in init_intermediate()
648 if (!buffer->fb_state.cbufs[i]) in init_intermediate()
660 pipe_surface_reference(&buffer->fb_state.cbufs[i], NULL); in init_intermediate()
673 pipe_surface_reference(&buffer->fb_state.cbufs[i], NULL); in cleanup_intermediate()
841 idct->pipe->set_framebuffer_state(idct->pipe, &buffer->fb_state); in vl_idct_flush()
Dvl_zscan.h61 struct pipe_framebuffer_state fb_state; member
Dvl_mc.h65 struct pipe_framebuffer_state fb_state; member
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_idct.h65 struct pipe_framebuffer_state fb_state; member
Dvl_compositor.h107 struct pipe_framebuffer_state fb_state; member
/external/mesa3d/src/gallium/drivers/zink/
Dzink_context.c565 const struct pipe_framebuffer_state *fb = &ctx->fb_state; in get_render_pass()
608 for (int i = 0; i < ctx->fb_state.nr_cbufs; i++) { in create_framebuffer()
609 struct pipe_surface *psurf = ctx->fb_state.cbufs[i]; in create_framebuffer()
614 state.num_attachments = ctx->fb_state.nr_cbufs; in create_framebuffer()
615 if (ctx->fb_state.zsbuf) { in create_framebuffer()
616 struct pipe_surface *psurf = ctx->fb_state.zsbuf; in create_framebuffer()
620 state.width = MAX2(ctx->fb_state.width, 1); in create_framebuffer()
621 state.height = MAX2(ctx->fb_state.height, 1); in create_framebuffer()
622 state.layers = MAX2(util_framebuffer_get_num_layers(&ctx->fb_state), 1); in create_framebuffer()
623 state.samples = ctx->fb_state.samples; in create_framebuffer()
[all …]
Dzink_draw.c429 else if (ctx->fb_state.width && ctx->fb_state.height) { in zink_draw_vbo()
433 fb_scissor[i].extent.width = ctx->fb_state.width; in zink_draw_vbo()
434 fb_scissor[i].extent.height = ctx->fb_state.height; in zink_draw_vbo()
Dzink_context.h94 struct pipe_framebuffer_state fb_state; member
Dzink_blit.c205 util_blitter_save_framebuffer(ctx->blitter, &ctx->fb_state); in zink_blit()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_blit.c76 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 …]
Dr300_context.c45 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_release_referenced_objects()
112 FREE(r300->fb_state.state); in r300_destroy_context()
178 R300_INIT_ATOM(fb_state, 0); in r300_setup_atoms()
236 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()
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()
Dr300_state.c571 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 …]
Dr300_hyperz.c135 (struct pipe_framebuffer_state*)r300->fb_state.state; in r300_update_hyperz()

12