/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_framebuffer.c | 67 if (dst->cbufs[i] != src->cbufs[i]) { in util_framebuffer_state_equal() 97 pipe_surface_reference(&dst->cbufs[i], src->cbufs[i]); in util_copy_framebuffer_state() 100 for ( ; i < ARRAY_SIZE(dst->cbufs); i++) in util_copy_framebuffer_state() 101 pipe_surface_reference(&dst->cbufs[i], NULL); in util_copy_framebuffer_state() 113 for (i = 0 ; i < ARRAY_SIZE(dst->cbufs); i++) in util_copy_framebuffer_state() 114 pipe_surface_reference(&dst->cbufs[i], NULL); in util_copy_framebuffer_state() 129 pipe_surface_reference(&fb->cbufs[i], NULL); in util_unreference_framebuffer_state() 153 if (!fb->cbufs[i]) in util_framebuffer_min_size() 156 w = MIN2(w, fb->cbufs[i]->width); in util_framebuffer_min_size() 157 h = MIN2(h, fb->cbufs[i]->height); in util_framebuffer_min_size() [all …]
|
/external/mesa3d/src/gallium/drivers/vc5/ |
D | vc5_job.c | 70 if (job->cbufs[i]) { in vc5_job_free() 71 remove_from_ht(vc5->write_jobs, job->cbufs[i]->texture); in vc5_job_free() 72 pipe_surface_reference(&job->cbufs[i], NULL); in vc5_job_free() 201 if (job->cbufs[3] || job->cbufs[2]) in vc5_job_set_tile_buffer_size() 203 else if (job->cbufs[1]) in vc5_job_set_tile_buffer_size() 208 if (job->cbufs[i]) { in vc5_job_set_tile_buffer_size() 209 struct vc5_surface *surf = vc5_surface(job->cbufs[i]); in vc5_job_set_tile_buffer_size() 232 struct pipe_surface **cbufs, struct pipe_surface *zsbuf) in vc5_get_job() argument 236 .cbufs = { in vc5_get_job() 237 cbufs[0], in vc5_get_job() [all …]
|
D | vc5_rcl.c | 206 struct pipe_surface *psurf = job->cbufs[i]; in vc5_rcl_emit_loads() 292 struct pipe_surface *psurf = job->cbufs[i]; in vc5_rcl_emit_stores() 428 if (!job->cbufs[cbuf]) in v3d_setup_render_target() 431 struct vc5_surface *surf = vc5_surface(job->cbufs[cbuf]); in v3d_setup_render_target() 453 if (job->cbufs[i]) in v3dX() 489 struct pipe_surface *psurf = job->cbufs[i]; in v3dX()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_scene.c | 158 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_begin_rasterization() 161 scene->cbufs[i].stride = 0; in lp_scene_begin_rasterization() 162 scene->cbufs[i].layer_stride = 0; in lp_scene_begin_rasterization() 163 scene->cbufs[i].map = NULL; in lp_scene_begin_rasterization() 168 scene->cbufs[i].stride = llvmpipe_resource_stride(cbuf->texture, in lp_scene_begin_rasterization() 170 scene->cbufs[i].layer_stride = llvmpipe_layer_stride(cbuf->texture, in lp_scene_begin_rasterization() 173 scene->cbufs[i].map = llvmpipe_resource_map(cbuf->texture, in lp_scene_begin_rasterization() 177 scene->cbufs[i].format_bytes = util_format_get_blocksize(cbuf->format); in lp_scene_begin_rasterization() 182 scene->cbufs[i].stride = cbuf->texture->width0; in lp_scene_begin_rasterization() 183 scene->cbufs[i].layer_stride = 0; in lp_scene_begin_rasterization() [all …]
|
D | lp_rast_priv.h | 172 pixel_offset = px * task->scene->cbufs[buf].format_bytes + in lp_rast_get_color_block_pointer() 173 py * task->scene->cbufs[buf].stride; in lp_rast_get_color_block_pointer() 177 color += layer * task->scene->cbufs[buf].layer_stride; in lp_rast_get_color_block_pointer() 180 …assert(lp_check_alignment(color, llvmpipe_get_format_alignment(task->scene->fb.cbufs[buf]->format)… in lp_rast_get_color_block_pointer() 241 if (scene->fb.cbufs[i]) { in lp_rast_shade_quads_all() 242 stride[i] = scene->cbufs[i].stride; in lp_rast_shade_quads_all()
|
D | lp_rast.c | 113 if (task->scene->fb.cbufs[i]) { in lp_rast_tile_begin() 114 task->color_tiles[i] = scene->cbufs[i].map + in lp_rast_tile_begin() 115 scene->cbufs[i].stride * task->y + in lp_rast_tile_begin() 116 scene->cbufs[i].format_bytes * task->x; in lp_rast_tile_begin() 143 assert(scene->fb.cbufs[cbuf]); in lp_rast_clear_color() 145 format = scene->fb.cbufs[cbuf]->format; in lp_rast_clear_color() 156 util_fill_box(scene->cbufs[cbuf].map, in lp_rast_clear_color() 158 scene->cbufs[cbuf].stride, in lp_rast_clear_color() 159 scene->cbufs[cbuf].layer_stride, in lp_rast_clear_color() 330 if (scene->fb.cbufs[i]) { in lp_rast_shade_tile() [all …]
|
D | lp_state_surface.c | 75 if (lp->framebuffer.cbufs[i] && in llvmpipe_set_framebuffer_state() 76 lp->framebuffer.cbufs[i]->context != pipe) { in llvmpipe_set_framebuffer_state()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_framebuffer.c | 71 if ((curr->cbufs[i] != hw->cbufs[i]) || (reemit && hw->cbufs[i])) { in emit_fb_vgpu9() 76 if (hw->cbufs[i] && svga_surface_needs_propagation(hw->cbufs[i])) in emit_fb_vgpu9() 77 svga_propagate_surface(svga, hw->cbufs[i], TRUE); in emit_fb_vgpu9() 80 curr->cbufs[i]); in emit_fb_vgpu9() 84 pipe_surface_reference(&hw->cbufs[i], curr->cbufs[i]); in emit_fb_vgpu9() 88 struct pipe_surface *s = curr->cbufs[i]; in emit_fb_vgpu9() 150 if (hw->cbufs[i]) { in svga_reemit_framebuffer_bindings_vgpu9() 152 hw->cbufs[i]); in svga_reemit_framebuffer_bindings_vgpu9() 212 if (curr->cbufs[i]) { in emit_fb_vgpu10() 213 struct pipe_surface *s = curr->cbufs[i]; in emit_fb_vgpu10() [all …]
|
D | svga_pipe_misc.c | 93 pipe_surface_reference(&curr->cbufs[i], NULL); in svga_cleanup_framebuffer() 94 pipe_surface_reference(&hw->cbufs[i], NULL); in svga_cleanup_framebuffer() 135 if (fb->cbufs[i]) { in svga_set_framebuffer_state() 137 if (fb->cbufs[i]->width != width || in svga_set_framebuffer_state() 138 fb->cbufs[i]->height != height) { in svga_set_framebuffer_state() 144 width = fb->cbufs[i]->width; in svga_set_framebuffer_state() 145 height = fb->cbufs[i]->height; in svga_set_framebuffer_state()
|
D | svga_pipe_clear.c | 94 fb->cbufs[i] && in is_integer_target() 95 util_format_is_pure_integer(fb->cbufs[i]->format)) { in is_integer_target() 185 if ((fb->cbufs[i] == NULL) || in try_clear() 190 svga_surface(fb->cbufs[i])); in try_clear() 241 if (svga->curr.framebuffer.cbufs[0]) { in svga_clear() 242 h = svga_surface(svga->curr.framebuffer.cbufs[0])->handle; in svga_clear()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_framebuffer.c | 143 framebuffer.cbufs[i] = NULL; in st_update_framebuffer_state() 154 framebuffer.cbufs[i] = strb->surface; in st_update_framebuffer_state() 162 framebuffer.cbufs[i] = NULL; in st_update_framebuffer_state() 167 !framebuffer.cbufs[framebuffer.nr_cbufs-1]) { in st_update_framebuffer_state() 200 assert(!framebuffer.cbufs[i] || in st_update_framebuffer_state() 201 framebuffer.cbufs[i]->texture->bind & PIPE_BIND_RENDER_TARGET); in st_update_framebuffer_state()
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_blend.c | 119 if (pfb->cbufs[0] && in etna_update_blend() 120 translate_rs_format_rb_swap(pfb->cbufs[0]->texture->format)) { in etna_update_blend() 135 !pfb->cbufs[0]; in etna_update_blend() 160 if (pfb->cbufs[0] && in etna_update_blend_color() 161 translate_rs_format_rb_swap(pfb->cbufs[0]->texture->format)) { in etna_update_blend_color()
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_state_surface.c | 57 struct pipe_surface *cb = i < fb->nr_cbufs ? fb->cbufs[i] : NULL; in softpipe_set_framebuffer_state() 60 if (sp->framebuffer.cbufs[i] != cb) { in softpipe_set_framebuffer_state() 65 pipe_surface_reference(&sp->framebuffer.cbufs[i], cb); in softpipe_set_framebuffer_state()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_clear.c | 363 if (!fb->cbufs[i]) in si_do_fast_color_clear() 370 unsigned level = fb->cbufs[i]->u.tex.level; in si_do_fast_color_clear() 371 tex = (struct r600_texture *)fb->cbufs[i]->texture; in si_do_fast_color_clear() 374 if (fb->cbufs[i]->u.tex.first_layer != 0 || in si_do_fast_color_clear() 375 fb->cbufs[i]->u.tex.last_layer != util_max_layer(&tex->resource.b.b, 0)) { in si_do_fast_color_clear() 380 if (fb->cbufs[i]->texture->last_level != 0) { in si_do_fast_color_clear() 447 if (!vi_get_fast_clear_parameters(fb->cbufs[i]->format, in si_do_fast_color_clear() 508 si_set_clear_color(tex, fb->cbufs[i]->format, color); in si_do_fast_color_clear() 543 if (!fb->cbufs[i]) in si_clear() 546 tex = (struct r600_texture *)fb->cbufs[i]->texture; in si_clear() [all …]
|
/external/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_state_validate.c | 54 struct nv30_miptree *mt = nv30_miptree(fb->cbufs[0]->texture); in nv30_validate_fb() 55 rt_format |= nv30_format(pscreen, fb->cbufs[0]->format)->hw; in nv30_validate_fb() 75 if (fb->nr_cbufs && util_format_get_blocksize(fb->cbufs[0]->format) > 2) in nv30_validate_fb() 87 int off = nv30_surface(fb->cbufs[0])->offset & 63; in nv30_validate_fb() 89 x += off / (util_format_get_blocksize(fb->cbufs[0]->format) * 2); in nv30_validate_fb() 117 struct nv30_surface *rsf = nv30_surface(fb->cbufs[0]); in nv30_validate_fb() 142 struct nv30_surface *sf = nv30_surface(fb->cbufs[1]); in nv30_validate_fb() 152 struct nv30_surface *sf = nv30_surface(fb->cbufs[2]); in nv30_validate_fb() 163 struct nv30_surface *sf = nv30_surface(fb->cbufs[3]); in nv30_validate_fb() 181 switch (nv30->framebuffer.cbufs[0]->format) { in nv30_validate_blend_colour()
|
/external/mesa3d/src/gallium/drivers/swr/ |
D | swr_clear.cpp | 47 if (fb->cbufs[i] && (buffers & (PIPE_CLEAR_COLOR0 << i))) { in swr_clear() 49 layers = std::max(layers, fb->cbufs[i]->u.tex.last_layer - in swr_clear() 50 fb->cbufs[i]->u.tex.first_layer + 1u); in swr_clear() 90 const struct pipe_surface *sf = fb->cbufs[c]; in swr_clear()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_blit.c | 133 if ((clear_buffers & ~PIPE_CLEAR_COLOR) != 0 || fb->nr_cbufs != 1 || !fb->cbufs[0]) in r300_cbzb_clear_allowed() 136 return r300_surface(fb->cbufs[0])->cbzb_allowed; in r300_cbzb_clear_allowed() 188 util_pack_color(color->f, fb->cbufs[0]->format, &uc); in r300_set_clear_color() 190 if (fb->cbufs[0]->format == PIPE_FORMAT_R16G16B16A16_FLOAT || in r300_set_clear_color() 191 fb->cbufs[0]->format == PIPE_FORMAT_R16G16B16X16_FLOAT) { in r300_set_clear_color() 316 if ((buffers & PIPE_CLEAR_COLOR) && fb->nr_cbufs == 1 && fb->cbufs[0] && in r300_clear() 317 r300_resource(fb->cbufs[0]->texture)->tex.cmask_dwords) { in r300_clear() 337 r300->screen->cmask_resource = fb->cbufs[0]->texture; in r300_clear() 342 if (r300->screen->cmask_resource == fb->cbufs[0]->texture) { in r300_clear() 352 struct r300_surface *surf = r300_surface(fb->cbufs[0]); in r300_clear()
|
D | r300_context.h | 691 if (fb->cbufs[i]) in r300_get_nonnull_cb() 692 return fb->cbufs[i]; in r300_get_nonnull_cb() 696 if (fb->cbufs[i]) in r300_get_nonnull_cb() 697 return fb->cbufs[i]; in r300_get_nonnull_cb()
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_state.c | 421 pipe_surface_reference(&cso->cbufs[i], framebuffer->cbufs[i]); in vc4_set_framebuffer_state() 423 pipe_surface_reference(&cso->cbufs[i], NULL); in vc4_set_framebuffer_state() 438 if (cso->cbufs[0] && cso->cbufs[0]->u.tex.level) { in vc4_set_framebuffer_state() 440 vc4_resource(cso->cbufs[0]->texture); in vc4_set_framebuffer_state() 442 (rsc->slices[cso->cbufs[0]->u.tex.level].stride / in vc4_set_framebuffer_state()
|
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_gmem.c | 173 emit_gmem2mem_surf(batch, 0, pfb->cbufs[0]); in fd2_emit_tile_gmem2mem() 332 emit_mem2gmem_surf(batch, 0, pfb->cbufs[0]); in fd2_emit_tile_mem2gmem() 345 enum pipe_format format = pipe_surface_format(pfb->cbufs[0]); in fd2_emit_tile_init() 367 enum pipe_format format = pipe_surface_format(pfb->cbufs[0]); in fd2_emit_tile_prep() 389 enum pipe_format format = pipe_surface_format(pfb->cbufs[0]); in fd2_emit_tile_renderprep()
|
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
D | fd5_gmem.c | 401 emit_mrt(ring, pfb->nr_cbufs, pfb->cbufs, &ctx->gmem); in fd5_emit_tile_init() 537 emit_mrt(ring, pfb->nr_cbufs, pfb->cbufs, NULL); in fd5_emit_tile_mem2gmem() 548 if (!pfb->cbufs[i]) in fd5_emit_tile_mem2gmem() 553 pfb->cbufs[i], BLIT_MRT0 + i); in fd5_emit_tile_mem2gmem() 581 emit_mrt(ring, pfb->nr_cbufs, pfb->cbufs, gmem); in fd5_emit_tile_renderprep() 665 if (!pfb->cbufs[i]) in fd5_emit_tile_gmem2mem() 670 pfb->cbufs[i], BLIT_MRT0 + i); in fd5_emit_tile_gmem2mem() 743 emit_mrt(ring, pfb->nr_cbufs, pfb->cbufs, NULL); in fd5_emit_sysmem_prep()
|
/external/mesa3d/src/gallium/tests/trivial/ |
D | tri.c | 168 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl); in init_prog() 229 pipe_surface_reference(&p->framebuffer.cbufs[0], NULL); in close_prog() 269 debug_dump_surface_bmp(p->pipe, "result.bmp", p->framebuffer.cbufs[0]); in draw()
|
D | quad-tex.c | 223 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl); in init_prog() 287 pipe_surface_reference(&p->framebuffer.cbufs[0], NULL); in close_prog() 337 debug_dump_surface_bmp(p->pipe, "result.bmp", p->framebuffer.cbufs[0]); in draw()
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_draw.c | 161 if (!pfb->cbufs[i]) in fd_draw_vbo() 164 surf = pfb->cbufs[i]->texture; in fd_draw_vbo() 254 util_format_short_name(pipe_surface_format(pfb->cbufs[0])), in fd_draw_vbo() 396 resource_written(batch, pfb->cbufs[i]->texture); in fd_clear() 412 util_format_short_name(pipe_surface_format(pfb->cbufs[0])), in fd_clear()
|
/external/mesa3d/src/gallium/auxiliary/rbug/ |
D | rbug_context.h | 117 rbug_texture_t *cbufs; member 178 rbug_texture_t *cbufs,
|