Lines Matching refs:zsbuf
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()
194 struct pipe_surface *zsbuf = scene->fb.zsbuf; in lp_scene_end_rasterization() local
195 llvmpipe_resource_unmap(zsbuf->texture, in lp_scene_end_rasterization()
196 zsbuf->u.tex.level, in lp_scene_end_rasterization()
197 zsbuf->u.tex.first_layer); in lp_scene_end_rasterization()
198 scene->zsbuf.map = NULL; in lp_scene_end_rasterization()