Lines Matching defs:zsbuf
190 if (fb->zsbuf) {
191 struct pipe_surface *zsbuf = scene->fb.zsbuf;
192 scene->zsbuf.stride = llvmpipe_resource_stride(zsbuf->texture, zsbuf->u.tex.level);
193 scene->zsbuf.layer_stride = llvmpipe_layer_stride(zsbuf->texture, zsbuf->u.tex.level);
195 scene->zsbuf.map = llvmpipe_resource_map(zsbuf->texture,
196 zsbuf->u.tex.level,
197 zsbuf->u.tex.first_layer,
199 scene->zsbuf.format_bytes = util_format_get_blocksize(zsbuf->format);
228 if (scene->zsbuf.map) {
229 struct pipe_surface *zsbuf = scene->fb.zsbuf;
230 llvmpipe_resource_unmap(zsbuf->texture,
231 zsbuf->u.tex.level,
232 zsbuf->u.tex.first_layer);
233 scene->zsbuf.map = NULL;
530 * attachment hence don't need separate per cbuf and zsbuf max.
544 if (fb->zsbuf) {
545 struct pipe_surface *zsbuf = scene->fb.zsbuf;
546 max_layer = MIN2(max_layer, zsbuf->u.tex.last_layer - zsbuf->u.tex.first_layer);