/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
D | lp_scene.c | 155 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 …]
|
D | lp_state_surface.c | 64 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()
|
D | lp_rast_priv.h | 160 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()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_scene.c | 155 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 …]
|
D | lp_state_surface.c | 64 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()
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/ |
D | sp_state_surface.c | 73 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()
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_state_surface.c | 73 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()
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_framebuffer.c | 68 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()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_framebuffer.c | 68 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()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_misc.c | 62 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()
|
D | svga_state_framebuffer.c | 71 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 …]
|
D | svga_pipe_clear.c | 70 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()
|
D | svga_pipe_flush.c | 62 if (0 && fb->zsbuf) { in svga_flush() 64 debug_dump_surface_bmp(&svga->pipe, filename, fb->zsbuf); in svga_flush()
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
D | svga_pipe_misc.c | 62 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()
|
D | svga_state_framebuffer.c | 71 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 …]
|
D | svga_pipe_clear.c | 70 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()
|
D | svga_pipe_flush.c | 62 if (0 && fb->zsbuf) { in svga_flush() 64 debug_dump_surface_bmp(&svga->pipe, filename, fb->zsbuf); in svga_flush()
|
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
D | st_atom_framebuffer.c | 151 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()
|
D | st_atom_msaa.c | 45 if (framebuffer->zsbuf) in update_sample_mask() 46 sample_count = framebuffer->zsbuf->texture->nr_samples; in update_sample_mask()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_framebuffer.c | 151 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()
|
D | st_atom_msaa.c | 45 if (framebuffer->zsbuf) in update_sample_mask() 46 sample_count = framebuffer->zsbuf->texture->nr_samples; in update_sample_mask()
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11spikysphere/ |
D | d3d11spikysphere.cpp | 157 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/chromium_org/third_party/mesa/src/src/gallium/state_trackers/d3d1x/progs/d3d11spikysphere/ |
D | d3d11spikysphere.cpp | 157 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/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/ |
D | r300_blit.c | 138 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()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_blit.c | 138 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()
|