Searched refs:zsbuf (Results 1 - 25 of 76) sorted by relevance

1234

/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_state_surface.c73 if (sp->framebuffer.zsbuf != fb->zsbuf) {
78 pipe_surface_reference(&sp->framebuffer.zsbuf, fb->zsbuf);
81 sp_tile_cache_set_surface(sp->zsbuf_cache, fb->zsbuf);
84 if (sp->framebuffer.zsbuf) {
87 depth_bits = util_format_get_component_bits(sp->framebuffer.zsbuf->format,
H A Dsp_clear.c74 struct pipe_surface *ps = softpipe->framebuffer.zsbuf;
H A Dsp_quad_pipe.c47 sp->framebuffer.zsbuf &&
H A Dsp_flush.c94 debug_dump_surface_bmp(softpipe, filename, softpipe->framebuffer.zsbuf);
H A Dsp_context.c123 pipe_surface_reference(&softpipe->framebuffer.zsbuf, NULL);
177 if (softpipe->framebuffer.zsbuf &&
178 softpipe->framebuffer.zsbuf->texture == texture) {
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_framebuffer.c68 if (dst->zsbuf != src->zsbuf) {
96 pipe_surface_reference(&dst->zsbuf, src->zsbuf);
109 pipe_surface_reference(&fb->zsbuf, NULL);
133 if (fb->zsbuf) {
134 w = MIN2(w, fb->zsbuf->width);
135 h = MIN2(h, fb->zsbuf->height);
H A Du_clear.h54 struct pipe_surface *ps = framebuffer->zsbuf;
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_state_surface.c64 pipe_surface_reference(&lp->framebuffer.zsbuf, NULL);
68 if (lp->framebuffer.zsbuf) {
71 depth_bits = util_format_get_component_bits(lp->framebuffer.zsbuf->format,
H A Dlp_scene.c155 if (fb->zsbuf) {
156 struct pipe_surface *zsbuf = scene->fb.zsbuf; local
157 assert(zsbuf->u.tex.first_layer == zsbuf->u.tex.last_layer);
158 scene->zsbuf.stride = llvmpipe_resource_stride(zsbuf->texture, zsbuf->u.tex.level);
159 scene->zsbuf.blocksize =
160 util_format_get_blocksize(zsbuf
194 struct pipe_surface *zsbuf = scene->fb.zsbuf; local
[all...]
H A Dlp_flush.c70 debug_dump_surface_bmp(&llvmpipe->pipe, filename, llvmpipe->framebuffer.zsbuf);
H A Dlp_rast_priv.h160 if (!scene->zsbuf.map) {
161 /* Either out of memory or no zsbuf. Can't tell without access
164 * zsbuf.
169 depth = (scene->zsbuf.map +
170 scene->zsbuf.stride * y +
171 scene->zsbuf.blocksize * x * TILE_VECTOR_HEIGHT);
H A Dlp_rast.c111 struct pipe_surface *zsbuf = task->scene->fb.zsbuf; local
112 if (zsbuf) {
113 struct llvmpipe_resource *lpt = llvmpipe_resource(zsbuf->texture);
124 zsbuf->u.tex.first_layer,
125 zsbuf->u.tex.level,
220 const unsigned block_size = scene->zsbuf.blocksize;
221 const unsigned dst_stride = scene->zsbuf.stride * TILE_VECTOR_HEIGHT;
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_pipe_misc.c62 pipe_surface_reference(&curr->zsbuf, NULL);
63 pipe_surface_reference(&hw->zsbuf, NULL);
104 if (fb->zsbuf && fb->cbufs[i]) {
105 assert(fb->zsbuf->width == fb->cbufs[i]->width);
106 assert(fb->zsbuf->height == fb->cbufs[i]->height);
114 pipe_surface_reference(&dst->zsbuf, fb->zsbuf);
117 if (svga->curr.framebuffer.zsbuf)
119 switch (svga->curr.framebuffer.zsbuf->format) {
H A Dsvga_pipe_flush.c62 if (0 && fb->zsbuf) {
64 debug_dump_surface_bmp(&svga->pipe, filename, fb->zsbuf);
H A Dsvga_pipe_clear.c70 if ((buffers & PIPE_CLEAR_DEPTHSTENCIL) && fb->zsbuf) {
74 if ((svga->curr.framebuffer.zsbuf->format == PIPE_FORMAT_S8_UINT_Z24_UNORM) &&
78 rect.w = MAX2(rect.w, fb->zsbuf->width);
79 rect.h = MAX2(rect.h, fb->zsbuf->height);
H A Dsvga_state_framebuffer.c71 if (curr->zsbuf != hw->zsbuf ||
72 (reemit && hw->zsbuf)) {
73 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_DEPTH, curr->zsbuf);
77 if (curr->zsbuf &&
78 curr->zsbuf->format == PIPE_FORMAT_S8_UINT_Z24_UNORM) {
79 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_STENCIL, curr->zsbuf);
89 pipe_surface_reference(&hw->zsbuf, curr->zsbuf);
124 if (hw->zsbuf) {
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_msaa.c45 if (framebuffer->zsbuf)
46 sample_count = framebuffer->zsbuf->texture->nr_samples;
H A Dst_atom_framebuffer.c151 pipe_surface_reference(&framebuffer->zsbuf, strb->surface);
157 pipe_surface_reference(&framebuffer->zsbuf, strb->surface);
160 pipe_surface_reference(&framebuffer->zsbuf, NULL);
168 if (framebuffer->zsbuf) {
169 assert(framebuffer->zsbuf->texture->bind & PIPE_BIND_DEPTH_STENCIL);
/external/mesa3d/src/gallium/drivers/rbug/
H A Drbug_context.h57 struct rbug_resource *zsbuf; member in struct:rbug_context::__anon14659
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11spikysphere/
H A Dd3d11spikysphere.cpp157 ID3D11Texture2D* zsbuf; local
167 ensure(dev->CreateTexture2D(&zsbufd, 0, &zsbuf));
168 ensure(dev->CreateDepthStencilView(zsbuf, 0, &zsv));
169 zsbuf->Release();
/external/mesa3d/src/gallium/drivers/r300/
H A Dr300_blit.c138 return r300_resource(fb->zsbuf->texture)->tex.zmask_dwords[fb->zsbuf->u.tex.level] != 0;
146 return r300_resource(fb->zsbuf->texture)->tex.hiz_dwords[fb->zsbuf->u.tex.level] != 0;
264 r300_depth_clear_value(fb->zsbuf->format, depth, stencil);
377 if (fb->zsbuf->texture == dst->texture) {
417 fb.zsbuf = r300->locked_zbuffer;
570 if (fb->zsbuf->texture == src ||
571 fb->zsbuf->texture == dst) {
H A Dr300_hyperz.c139 fb->zsbuf ? r300_resource(fb->zsbuf->texture) : NULL;
155 if (zstex->tex.zcomp8x8[fb->zsbuf->u.tex.level]) {
H A Dr300_state.c787 if (state->zsbuf) {
789 r300_resource(state->zsbuf->texture),
790 state->zsbuf->u.tex.level);
847 } else if (state->zsbuf) {
883 if (old_state->zsbuf && r300->zmask_in_use && !r300->locked_zbuffer) {
885 if (state->zsbuf) {
886 if (!pipe_surface_equal(old_state->zsbuf, state->zsbuf)) {
893 pipe_surface_reference(&r300->locked_zbuffer, old_state->zsbuf);
897 if (state->zsbuf) {
[all...]
/external/mesa3d/src/gallium/auxiliary/rbug/
H A Drbug_context.h119 rbug_texture_t zsbuf; member in struct:rbug_proto_context_info_reply
180 rbug_texture_t zsbuf,
/external/mesa3d/src/gallium/drivers/nv30/
H A Dnv30_state_validate.c62 if (fb->zsbuf && util_format_get_blocksize(fb->zsbuf->format) > 2)
68 if (fb->zsbuf) {
69 rt_format |= nv30_format(pscreen, fb->zsbuf->format)->hw;
70 if (nv30_miptree(fb->zsbuf->texture)->swizzled)
119 if ((nv30->state.rt_enable & NV30_3D_RT_ENABLE_COLOR0) || fb->zsbuf) {
121 struct nv30_surface *zsf = nv30_surface(fb->zsbuf);

Completed in 1015 milliseconds

1234