Home
last modified time | relevance | path

Searched refs:zsbuf (Results 1 – 25 of 77) sorted by relevance

1234

/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_scene.c155 if (fb->zsbuf) { in lp_scene_begin_rasterization()
156 struct pipe_surface *zsbuf = scene->fb.zsbuf; in lp_scene_begin_rasterization() local
157 assert(zsbuf->u.tex.first_layer == zsbuf->u.tex.last_layer); in lp_scene_begin_rasterization()
158 scene->zsbuf.stride = llvmpipe_resource_stride(zsbuf->texture, zsbuf->u.tex.level); in lp_scene_begin_rasterization()
159 scene->zsbuf.blocksize = in lp_scene_begin_rasterization()
160 util_format_get_blocksize(zsbuf->texture->format); in lp_scene_begin_rasterization()
162 scene->zsbuf.map = llvmpipe_resource_map(zsbuf->texture, in lp_scene_begin_rasterization()
163 zsbuf->u.tex.level, in lp_scene_begin_rasterization()
164 zsbuf->u.tex.first_layer, in lp_scene_begin_rasterization()
193 if (scene->zsbuf.map) { in lp_scene_end_rasterization()
[all …]
Dlp_state_surface.c64 pipe_surface_reference(&lp->framebuffer.zsbuf, NULL); in llvmpipe_set_framebuffer_state()
68 if (lp->framebuffer.zsbuf) { in llvmpipe_set_framebuffer_state()
71 depth_bits = util_format_get_component_bits(lp->framebuffer.zsbuf->format, in llvmpipe_set_framebuffer_state()
Dlp_rast_priv.h160 if (!scene->zsbuf.map) { in lp_rast_get_depth_block_pointer()
169 depth = (scene->zsbuf.map + in lp_rast_get_depth_block_pointer()
170 scene->zsbuf.stride * y + in lp_rast_get_depth_block_pointer()
171 scene->zsbuf.blocksize * x * TILE_VECTOR_HEIGHT); in lp_rast_get_depth_block_pointer()
Dlp_rast.c111 struct pipe_surface *zsbuf = task->scene->fb.zsbuf; in lp_rast_tile_begin() local
112 if (zsbuf) { in lp_rast_tile_begin()
113 struct llvmpipe_resource *lpt = llvmpipe_resource(zsbuf->texture); in lp_rast_tile_begin()
124 zsbuf->u.tex.first_layer, in lp_rast_tile_begin()
125 zsbuf->u.tex.level, in lp_rast_tile_begin()
220 const unsigned block_size = scene->zsbuf.blocksize; in lp_rast_clear_zstencil()
221 const unsigned dst_stride = scene->zsbuf.stride * TILE_VECTOR_HEIGHT; in lp_rast_clear_zstencil()
Dlp_setup.c201 if (setup->fb.zsbuf && in begin_binning()
203 util_format_is_depth_and_stencil(setup->fb.zsbuf->format)) in begin_binning()
220 if (setup->fb.zsbuf) { in begin_binning()
400 zsvalue = util_pack_z_stencil(setup->fb.zsbuf->format, in lp_setup_try_clear()
405 zsmask = util_pack_mask_z_stencil(setup->fb.zsbuf->format, in lp_setup_try_clear()
757 if (setup->fb.zsbuf && setup->fb.zsbuf->texture == texture) { in lp_setup_is_resource_referenced()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_surface.c73 if (sp->framebuffer.zsbuf != fb->zsbuf) { in softpipe_set_framebuffer_state()
78 pipe_surface_reference(&sp->framebuffer.zsbuf, fb->zsbuf); in softpipe_set_framebuffer_state()
81 sp_tile_cache_set_surface(sp->zsbuf_cache, fb->zsbuf); in softpipe_set_framebuffer_state()
84 if (sp->framebuffer.zsbuf) { in softpipe_set_framebuffer_state()
87 depth_bits = util_format_get_component_bits(sp->framebuffer.zsbuf->format, in softpipe_set_framebuffer_state()
Dsp_context.c123 pipe_surface_reference(&softpipe->framebuffer.zsbuf, NULL); in softpipe_destroy()
177 if (softpipe->framebuffer.zsbuf && in softpipe_is_resource_referenced()
178 softpipe->framebuffer.zsbuf->texture == texture) { in softpipe_is_resource_referenced()
Dsp_clear.c74 struct pipe_surface *ps = softpipe->framebuffer.zsbuf; in softpipe_clear()
/external/mesa3d/src/gallium/auxiliary/util/
Du_framebuffer.c68 if (dst->zsbuf != src->zsbuf) { in util_framebuffer_state_equal()
96 pipe_surface_reference(&dst->zsbuf, src->zsbuf); in util_copy_framebuffer_state()
109 pipe_surface_reference(&fb->zsbuf, NULL); in util_unreference_framebuffer_state()
133 if (fb->zsbuf) { in util_framebuffer_min_size()
134 w = MIN2(w, fb->zsbuf->width); in util_framebuffer_min_size()
135 h = MIN2(h, fb->zsbuf->height); in util_framebuffer_min_size()
Du_clear.h54 struct pipe_surface *ps = framebuffer->zsbuf; in util_clear()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_misc.c62 pipe_surface_reference(&curr->zsbuf, NULL); in svga_cleanup_framebuffer()
63 pipe_surface_reference(&hw->zsbuf, NULL); in svga_cleanup_framebuffer()
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()
114 pipe_surface_reference(&dst->zsbuf, fb->zsbuf); in svga_set_framebuffer_state()
117 if (svga->curr.framebuffer.zsbuf) in svga_set_framebuffer_state()
119 switch (svga->curr.framebuffer.zsbuf->format) { in svga_set_framebuffer_state()
Dsvga_state_framebuffer.c71 if (curr->zsbuf != hw->zsbuf || in emit_framebuffer()
72 (reemit && hw->zsbuf)) { in emit_framebuffer()
73 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_DEPTH, curr->zsbuf); in emit_framebuffer()
77 if (curr->zsbuf && in emit_framebuffer()
78 curr->zsbuf->format == PIPE_FORMAT_S8_UINT_Z24_UNORM) { in emit_framebuffer()
79 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_STENCIL, curr->zsbuf); in emit_framebuffer()
89 pipe_surface_reference(&hw->zsbuf, curr->zsbuf); in emit_framebuffer()
124 if (hw->zsbuf) { in svga_reemit_framebuffer_bindings()
125 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_DEPTH, hw->zsbuf); in svga_reemit_framebuffer_bindings()
130 if (hw->zsbuf && in svga_reemit_framebuffer_bindings()
[all …]
Dsvga_pipe_clear.c70 if ((buffers & PIPE_CLEAR_DEPTHSTENCIL) && fb->zsbuf) { in try_clear()
74 if ((svga->curr.framebuffer.zsbuf->format == PIPE_FORMAT_S8_UINT_Z24_UNORM) && in try_clear()
78 rect.w = MAX2(rect.w, fb->zsbuf->width); in try_clear()
79 rect.h = MAX2(rect.h, fb->zsbuf->height); in try_clear()
Dsvga_pipe_flush.c62 if (0 && fb->zsbuf) { in svga_flush()
64 debug_dump_surface_bmp(&svga->pipe, filename, fb->zsbuf); in svga_flush()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_framebuffer.c151 pipe_surface_reference(&framebuffer->zsbuf, strb->surface); in update_framebuffer_state()
157 pipe_surface_reference(&framebuffer->zsbuf, strb->surface); in update_framebuffer_state()
160 pipe_surface_reference(&framebuffer->zsbuf, NULL); in update_framebuffer_state()
168 if (framebuffer->zsbuf) { in update_framebuffer_state()
169 assert(framebuffer->zsbuf->texture->bind & PIPE_BIND_DEPTH_STENCIL); in update_framebuffer_state()
Dst_atom_msaa.c45 if (framebuffer->zsbuf) in update_sample_mask()
46 sample_count = framebuffer->zsbuf->texture->nr_samples; in update_sample_mask()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_blit.c138 return r300_resource(fb->zsbuf->texture)->tex.zmask_dwords[fb->zsbuf->u.tex.level] != 0; in r300_fast_zclear_allowed()
146 return r300_resource(fb->zsbuf->texture)->tex.hiz_dwords[fb->zsbuf->u.tex.level] != 0; in r300_hiz_clear_allowed()
264 r300_depth_clear_value(fb->zsbuf->format, depth, stencil); in r300_clear()
377 if (fb->zsbuf->texture == dst->texture) { in r300_clear_depth_stencil()
417 fb.zsbuf = r300->locked_zbuffer; in r300_decompress_zmask_locked_unsafe()
570 if (fb->zsbuf->texture == src || in r300_resource_copy_region()
571 fb->zsbuf->texture == dst) { in r300_resource_copy_region()
Dr300_state.c787 if (state->zsbuf) { in r300_fb_set_tiling_flags()
789 r300_resource(state->zsbuf->texture), in r300_fb_set_tiling_flags()
790 state->zsbuf->u.tex.level); in r300_fb_set_tiling_flags()
847 } else if (state->zsbuf) { in r300_mark_fb_state_dirty()
883 if (old_state->zsbuf && r300->zmask_in_use && !r300->locked_zbuffer) { in r300_set_framebuffer_state()
885 if (state->zsbuf) { in r300_set_framebuffer_state()
886 if (!pipe_surface_equal(old_state->zsbuf, state->zsbuf)) { in r300_set_framebuffer_state()
893 pipe_surface_reference(&r300->locked_zbuffer, old_state->zsbuf); in r300_set_framebuffer_state()
897 if (state->zsbuf) { in r300_set_framebuffer_state()
898 if (!pipe_surface_equal(r300->locked_zbuffer, state->zsbuf)) { in r300_set_framebuffer_state()
[all …]
Dr300_hyperz.c139 fb->zsbuf ? r300_resource(fb->zsbuf->texture) : NULL; in r300_update_hyperz()
155 if (zstex->tex.zcomp8x8[fb->zsbuf->u.tex.level]) { in r300_update_hyperz()
Dr300_emit.c84 if (fb->zsbuf) { in r300_emit_dsa_state()
425 else if (fb->zsbuf) { in r300_emit_fb_state()
426 surf = r300_surface(fb->zsbuf); in r300_emit_fb_state()
1118 tex = r300_resource(fb->zsbuf->texture); in r300_emit_hiz_clear()
1123 OUT_CS(tex->tex.hiz_dwords[fb->zsbuf->u.tex.level]); in r300_emit_hiz_clear()
1140 tex = r300_resource(fb->zsbuf->texture); in r300_emit_zmask_clear()
1145 OUT_CS(tex->tex.zmask_dwords[fb->zsbuf->u.tex.level]); in r300_emit_zmask_clear()
1197 if (fb->zsbuf) { in r300_emit_buffer_validate()
1198 tex = r300_resource(fb->zsbuf->texture); in r300_emit_buffer_validate()
1202 r300_surface(fb->zsbuf)->domain); in r300_emit_buffer_validate()
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11spikysphere/
Dd3d11spikysphere.cpp157 ID3D11Texture2D* zsbuf; in draw() local
167 ensure(dev->CreateTexture2D(&zsbufd, 0, &zsbuf)); in draw()
168 ensure(dev->CreateDepthStencilView(zsbuf, 0, &zsv)); in draw()
169 zsbuf->Release(); in draw()
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_state_validate.c62 if (fb->zsbuf && util_format_get_blocksize(fb->zsbuf->format) > 2) in nv30_validate_fb()
68 if (fb->zsbuf) { in nv30_validate_fb()
69 rt_format |= nv30_format(pscreen, fb->zsbuf->format)->hw; in nv30_validate_fb()
70 if (nv30_miptree(fb->zsbuf->texture)->swizzled) in nv30_validate_fb()
119 if ((nv30->state.rt_enable & NV30_3D_RT_ENABLE_COLOR0) || fb->zsbuf) { in nv30_validate_fb()
121 struct nv30_surface *zsf = nv30_surface(fb->zsbuf); in nv30_validate_fb()
/external/mesa3d/src/gallium/auxiliary/rbug/
Drbug_context.h119 rbug_texture_t zsbuf; member
180 rbug_texture_t zsbuf,
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_state_validate.c47 assert(!fb->zsbuf); in nv50_validate_fb()
62 if (fb->zsbuf) { in nv50_validate_fb()
63 struct nv50_miptree *mt = nv50_miptree(fb->zsbuf->texture); in nv50_validate_fb()
64 struct nv50_surface *sf = nv50_surface(fb->zsbuf); in nv50_validate_fb()
71 PUSH_DATA (push, nv50_format_table[fb->zsbuf->format].rt); in nv50_validate_fb()
/external/mesa3d/src/gallium/drivers/nvc0/
Dnvc0_state_validate.c11 struct nv50_surface *sf = nv50_surface(fb->zsbuf); in nvc0_validate_zcull()
111 assert(!fb->zsbuf); in nvc0_validate_fb()
123 if (fb->zsbuf) { in nvc0_validate_fb()
124 struct nv50_miptree *mt = nv50_miptree(fb->zsbuf->texture); in nvc0_validate_fb()
125 struct nv50_surface *sf = nv50_surface(fb->zsbuf); in nvc0_validate_fb()
131 PUSH_DATA (push, nvc0_format_table[fb->zsbuf->format].rt); in nvc0_validate_fb()

1234