/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_misc.c | 58 pipe_surface_reference(&curr->cbufs[i], NULL); in svga_cleanup_framebuffer() 59 pipe_surface_reference(&hw->cbufs[i], NULL); in svga_cleanup_framebuffer() 86 if (dst->cbufs[i] && dst->cbufs[i] != fb->cbufs[i]) in svga_set_framebuffer_state() 87 if (svga_surface_needs_propagation(dst->cbufs[i])) in svga_set_framebuffer_state() 96 if (dst->cbufs[i] && dst->cbufs[i] != fb->cbufs[i]) in svga_set_framebuffer_state() 97 svga_propagate_surface(svga, dst->cbufs[i]); in svga_set_framebuffer_state() 104 if (fb->zsbuf && fb->cbufs[i]) { in svga_set_framebuffer_state() 105 assert(fb->zsbuf->width == fb->cbufs[i]->width); in svga_set_framebuffer_state() 106 assert(fb->zsbuf->height == fb->cbufs[i]->height); in svga_set_framebuffer_state() 111 pipe_surface_reference(&dst->cbufs[i], in svga_set_framebuffer_state() [all …]
|
D | svga_pipe_clear.c | 62 if ((buffers & PIPE_CLEAR_COLOR) && fb->cbufs[0]) { in try_clear() 66 rect.w = fb->cbufs[0]->width; in try_clear() 67 rect.h = fb->cbufs[0]->height; in try_clear() 116 svga_surface(svga->curr.framebuffer.cbufs[0])->handle); in svga_clear()
|
D | svga_state_framebuffer.c | 57 if (curr->cbufs[i] != hw->cbufs[i] || in emit_framebuffer() 58 (reemit && hw->cbufs[i])) { in emit_framebuffer() 62 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_COLOR0 + i, curr->cbufs[i]); in emit_framebuffer() 66 pipe_surface_reference(&hw->cbufs[i], curr->cbufs[i]); in emit_framebuffer() 116 if (hw->cbufs[i]) { in svga_reemit_framebuffer_bindings() 117 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_COLOR0 + i, hw->cbufs[i]); in svga_reemit_framebuffer_bindings()
|
D | svga_pipe_flush.c | 59 debug_dump_surface_bmp(&svga->pipe, filename, fb->cbufs[i]); in svga_flush()
|
D | svga_context.c | 288 if (svga->curr.framebuffer.cbufs[i]) in svga_surfaces_flush() 289 svga_propagate_surface(svga, svga->curr.framebuffer.cbufs[i]); in svga_surfaces_flush()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_framebuffer.c | 58 for (i = 0; i < Elements(src->cbufs); i++) { in util_framebuffer_state_equal() 59 if (dst->cbufs[i] != src->cbufs[i]) { in util_framebuffer_state_equal() 89 pipe_surface_reference(&dst->cbufs[i], src->cbufs[i]); in util_copy_framebuffer_state() 92 pipe_surface_reference(&dst->cbufs[i], NULL); in util_copy_framebuffer_state() 106 pipe_surface_reference(&fb->cbufs[i], NULL); in util_unreference_framebuffer_state() 129 w = MIN2(w, fb->cbufs[i]->width); in util_framebuffer_min_size() 130 h = MIN2(h, fb->cbufs[i]->height); in util_framebuffer_min_size()
|
D | u_clear.h | 48 struct pipe_surface *ps = framebuffer->cbufs[i]; in util_clear()
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_state_surface.c | 58 if (sp->framebuffer.cbufs[i] != fb->cbufs[i]) { in softpipe_set_framebuffer_state() 63 pipe_surface_reference(&sp->framebuffer.cbufs[i], fb->cbufs[i]); in softpipe_set_framebuffer_state() 66 sp_tile_cache_set_surface(sp->cbuf_cache[i], fb->cbufs[i]); in softpipe_set_framebuffer_state()
|
D | sp_context.c | 119 pipe_surface_reference(&softpipe->framebuffer.cbufs[i], NULL); in softpipe_destroy() 172 if (softpipe->framebuffer.cbufs[i] && in softpipe_is_resource_referenced() 173 softpipe->framebuffer.cbufs[i]->texture == texture) { in softpipe_is_resource_referenced()
|
/external/mesa3d/src/gallium/drivers/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() 120 struct nv30_surface *rsf = nv30_surface(fb->cbufs[0]); in nv30_validate_fb() 145 struct nv30_surface *sf = nv30_surface(fb->cbufs[1]); in nv30_validate_fb() 155 struct nv30_surface *sf = nv30_surface(fb->cbufs[2]); in nv30_validate_fb() 166 struct nv30_surface *sf = nv30_surface(fb->cbufs[3]); in nv30_validate_fb() 184 switch (nv30->framebuffer.cbufs[0]->format) { in nv30_validate_blend_colour()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_msaa.c | 47 else if (framebuffer->cbufs[0]) in update_sample_mask() 48 sample_count = framebuffer->cbufs[0]->texture->nr_samples; in update_sample_mask()
|
D | st_atom_framebuffer.c | 131 pipe_surface_reference(&framebuffer->cbufs[framebuffer->nr_cbufs], in update_framebuffer_state() 139 pipe_surface_reference(&framebuffer->cbufs[i], NULL); in update_framebuffer_state() 166 assert(framebuffer->cbufs[i]->texture->bind & PIPE_BIND_RENDER_TARGET); in update_framebuffer_state()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_scene.c | 143 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_begin_rasterization() 145 scene->cbufs[i].stride = llvmpipe_resource_stride(cbuf->texture, in lp_scene_begin_rasterization() 148 scene->cbufs[i].map = llvmpipe_resource_map(cbuf->texture, in lp_scene_begin_rasterization() 183 if (scene->cbufs[i].map) { in lp_scene_end_rasterization() 184 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_end_rasterization() 188 scene->cbufs[i].map = NULL; in lp_scene_end_rasterization()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_emit.c | 48 if (fb->cbufs[0]->format == PIPE_FORMAT_R16G16B16A16_FLOAT) { in r300_emit_blend_state() 51 unsigned swz = r300_surface(fb->cbufs[0])->colormask_swizzle; in r300_emit_blend_state() 85 if (fb->nr_cbufs && fb->cbufs[0]->format == PIPE_FORMAT_R16G16B16A16_FLOAT) in r300_emit_dsa_state() 90 if (fb->nr_cbufs && fb->cbufs[0]->format == PIPE_FORMAT_R16G16B16A16_FLOAT) in r300_emit_dsa_state() 326 struct r300_surface *surf = r300_surface(fb->cbufs[0]); in r300_emit_gpu_flush() 399 surf = r300_surface(fb->cbufs[i]); in r300_emit_fb_state() 410 surf = r300_surface(fb->cbufs[0]); in r300_emit_fb_state() 448 surf = r300_surface(fb->cbufs[0]); in r300_emit_fb_state() 509 OUT_CS(r300_surface(fb->cbufs[i])->format); in r300_emit_fb_state_pipelined() 526 if (fb->nr_cbufs && fb->cbufs[0]->texture->nr_samples > 1) { in r300_emit_fb_state_pipelined() [all …]
|
/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() 231 pipe_surface_reference(&p->framebuffer.cbufs[0], NULL); in close_prog() 272 debug_dump_surface_bmp(p->pipe, "result.bmp", p->framebuffer.cbufs[0]); in draw()
|
D | quad-tex.c | 227 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl); in init_prog() 293 pipe_surface_reference(&p->framebuffer.cbufs[0], NULL); in close_prog() 343 debug_dump_surface_bmp(p->pipe, "result.bmp", p->framebuffer.cbufs[0]); in draw()
|
/external/mesa3d/src/gallium/auxiliary/rbug/ |
D | rbug_context.h | 117 rbug_texture_t *cbufs; member 178 rbug_texture_t *cbufs,
|
D | rbug_context.c | 375 rbug_texture_t *cbufs, in rbug_send_context_info_reply() argument 392 LEN_ARRAY(8, cbufs); /* cbufs */ in rbug_send_context_info_reply() 410 WRITE_ARRAY(8, rbug_texture_t, cbufs); /* cbufs */ in rbug_send_context_info_reply() 714 READ_ARRAY(8, rbug_texture_t, cbufs); /* cbufs */ in rbug_demarshal_context_info_reply()
|
/external/mesa3d/src/gallium/drivers/nv50/ |
D | nv50_surface.c | 685 nv50->framebuffer.cbufs[0] = nv50_miptree_surface_new(pipe, res, &templ); in nv50_blit_set_dst() 688 nv50->framebuffer.width = nv50->framebuffer.cbufs[0]->width; in nv50_blit_set_dst() 689 nv50->framebuffer.height = nv50->framebuffer.cbufs[0]->height; in nv50_blit_set_dst() 792 blit->saved.fb.cbufs[0] = nv50->framebuffer.cbufs[0]; in nv50_blitctx_pre_blit() 831 pipe_surface_reference(&nv50->framebuffer.cbufs[0], NULL); in nv50_blitctx_post_blit() 836 nv50->framebuffer.cbufs[0] = blit->saved.fb.cbufs[0]; in nv50_blitctx_post_blit()
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
D | pp_run.c | 128 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, out, &p->surf); in pp_filter_setup_out() 135 pipe_surface_reference(&p->framebuffer.cbufs[0], NULL); in pp_filter_end_pass()
|
/external/mesa3d/src/gallium/drivers/nvc0/ |
D | nvc0_surface.c | 751 nvc0->framebuffer.cbufs[0] = nvc0_miptree_surface_new(pipe, res, &templ); in nvc0_blit_set_dst() 754 nvc0->framebuffer.width = nvc0->framebuffer.cbufs[0]->width; in nvc0_blit_set_dst() 755 nvc0->framebuffer.height = nvc0->framebuffer.cbufs[0]->height; in nvc0_blit_set_dst() 859 blit->saved.fb.cbufs[0] = nvc0->framebuffer.cbufs[0]; in nvc0_blitctx_pre_blit() 908 pipe_surface_reference(&nvc0->framebuffer.cbufs[0], NULL); in nvc0_blitctx_post_blit() 913 nvc0->framebuffer.cbufs[0] = blit->saved.fb.cbufs[0]; in nvc0_blitctx_post_blit()
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_state_static.c | 97 struct pipe_surface *cbuf_surface = i915->framebuffer.cbufs[0]; in update_framebuffer() 200 struct pipe_surface *cbuf_surface = i915->framebuffer.cbufs[0]; in update_dst_buf_vars()
|
/external/mesa3d/src/gallium/drivers/rbug/ |
D | rbug_context.h | 56 struct rbug_resource *cbufs[PIPE_MAX_COLOR_BUFS]; member
|
D | rbug_context.c | 85 if (rb_pipe->draw_rule.surf == rb_pipe->curr.cbufs[k]) in rbug_draw_block_locked() 657 memset(rb_pipe->curr.cbufs, 0, sizeof(rb_pipe->curr.cbufs)); in rbug_set_framebuffer_state() 666 unwrapped_state.cbufs[i] = rbug_surface_unwrap(_state->cbufs[i]); in rbug_set_framebuffer_state() 667 if (_state->cbufs[i]) in rbug_set_framebuffer_state() 668 rb_pipe->curr.cbufs[i] = rbug_resource(_state->cbufs[i]->texture); in rbug_set_framebuffer_state()
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_idct.c | 607 buffer->fb_state_mismatch.cbufs[0] = idct->pipe->create_surface(idct->pipe, tex, &surf_templ); in init_source() 622 pipe_surface_reference(&buffer->fb_state_mismatch.cbufs[0], NULL); in cleanup_source() 647 buffer->fb_state.cbufs[i] = idct->pipe->create_surface( in init_intermediate() 650 if (!buffer->fb_state.cbufs[i]) in init_intermediate() 663 pipe_surface_reference(&buffer->fb_state.cbufs[i], NULL); in init_intermediate() 676 pipe_surface_reference(&buffer->fb_state.cbufs[i], NULL); in cleanup_intermediate()
|