Home | History | Annotate | Download | only in llvmpipe

Lines Matching refs:cbuf

158       struct pipe_surface *cbuf = scene->fb.cbufs[i];
160 if (!cbuf) {
167 if (llvmpipe_resource_is_texture(cbuf->texture)) {
168 scene->cbufs[i].stride = llvmpipe_resource_stride(cbuf->texture,
169 cbuf->u.tex.level);
170 scene->cbufs[i].layer_stride = llvmpipe_layer_stride(cbuf->texture,
171 cbuf->u.tex.level);
173 scene->cbufs[i].map = llvmpipe_resource_map(cbuf->texture,
174 cbuf->u.tex.level,
175 cbuf->u.tex.first_layer,
177 scene->cbufs[i].format_bytes = util_format_get_blocksize(cbuf->format);
180 struct llvmpipe_resource *lpr = llvmpipe_resource(cbuf->texture);
181 unsigned pixstride = util_format_get_blocksize(cbuf->format);
182 scene->cbufs[i].stride = cbuf->texture->width0;
185 scene->cbufs[i].map += cbuf->u.buf.first_element * pixstride;
186 scene->cbufs[i].format_bytes = util_format_get_blocksize(cbuf->format);
217 struct pipe_surface *cbuf = scene->fb.cbufs[i];
218 if (llvmpipe_resource_is_texture(cbuf->texture)) {
219 llvmpipe_resource_unmap(cbuf->texture,
220 cbuf->u.tex.level,
221 cbuf->u.tex.first_layer);
530 * attachment hence don't need separate per cbuf and zsbuf max.
533 struct pipe_surface *cbuf = scene->fb.cbufs[i];
534 if (cbuf) {
535 if (llvmpipe_resource_is_texture(cbuf->texture)) {
537 cbuf->u.tex.last_layer - cbuf->u.tex.first_layer);