Lines Matching defs:res
194 osmesa_read_buffer(OSMesaContext osmesa, struct pipe_resource *res, void *dst,
200 u_box_2d(0, 0, res->width0, res->height0, &box);
203 ubyte *src = pipe->texture_map(pipe, res, 0, PIPE_MAP_READ, &box,
212 dst = (ubyte *)dst + (res->height0 - 1) * dst_stride;
216 unsigned bpp = util_format_get_blocksize(res->format);
217 for (unsigned y = 0; y < res->height0; y++)
219 memcpy(dst, src, bpp * res->width0);
365 struct pipe_resource *res = osbuffer->textures[statt];
378 struct pipe_resource *res = osbuffer->textures[i];
379 if (res) {
381 util_format_description(res->format);
384 zsbuf = res;
391 pp_run(osmesa->pp, res, res, zsbuf);
401 osmesa_read_buffer(osmesa, res, osbuffer->map, dst_stride, osmesa->y_up);
924 struct pipe_resource *res = osbuffer->textures[ST_ATTACHMENT_DEPTH_STENCIL];
926 if (!res) {
934 *width = res->width0;
935 *height = res->height0;
936 *bytesPerValue = util_format_get_blocksize(res->format);
944 osmesa_read_buffer(c, res, c->zs, c->zs_stride, true);