• Home
  • Raw
  • Download

Lines Matching refs:fb

124 util_unreference_framebuffer_state(struct pipe_framebuffer_state *fb)  in util_unreference_framebuffer_state()  argument
128 for (i = 0; i < fb->nr_cbufs; i++) { in util_unreference_framebuffer_state()
129 pipe_surface_reference(&fb->cbufs[i], NULL); in util_unreference_framebuffer_state()
132 pipe_surface_reference(&fb->zsbuf, NULL); in util_unreference_framebuffer_state()
134 fb->samples = fb->layers = 0; in util_unreference_framebuffer_state()
135 fb->width = fb->height = 0; in util_unreference_framebuffer_state()
136 fb->nr_cbufs = 0; in util_unreference_framebuffer_state()
144 util_framebuffer_min_size(const struct pipe_framebuffer_state *fb, in util_framebuffer_min_size() argument
152 for (i = 0; i < fb->nr_cbufs; i++) { in util_framebuffer_min_size()
153 if (!fb->cbufs[i]) in util_framebuffer_min_size()
156 w = MIN2(w, fb->cbufs[i]->width); in util_framebuffer_min_size()
157 h = MIN2(h, fb->cbufs[i]->height); in util_framebuffer_min_size()
160 if (fb->zsbuf) { in util_framebuffer_min_size()
161 w = MIN2(w, fb->zsbuf->width); in util_framebuffer_min_size()
162 h = MIN2(h, fb->zsbuf->height); in util_framebuffer_min_size()
182 util_framebuffer_get_num_layers(const struct pipe_framebuffer_state *fb) in util_framebuffer_get_num_layers() argument
191 if (!(fb->nr_cbufs || fb->zsbuf)) in util_framebuffer_get_num_layers()
192 return fb->layers; in util_framebuffer_get_num_layers()
194 for (i = 0; i < fb->nr_cbufs; i++) { in util_framebuffer_get_num_layers()
195 if (fb->cbufs[i]) { in util_framebuffer_get_num_layers()
196 unsigned num = fb->cbufs[i]->u.tex.last_layer - in util_framebuffer_get_num_layers()
197 fb->cbufs[i]->u.tex.first_layer + 1; in util_framebuffer_get_num_layers()
201 if (fb->zsbuf) { in util_framebuffer_get_num_layers()
202 unsigned num = fb->zsbuf->u.tex.last_layer - in util_framebuffer_get_num_layers()
203 fb->zsbuf->u.tex.first_layer + 1; in util_framebuffer_get_num_layers()
214 util_framebuffer_get_num_samples(const struct pipe_framebuffer_state *fb) in util_framebuffer_get_num_samples() argument
229 if (!(fb->nr_cbufs || fb->zsbuf)) in util_framebuffer_get_num_samples()
230 return MAX2(fb->samples, 1); in util_framebuffer_get_num_samples()
232 for (i = 0; i < fb->nr_cbufs; i++) { in util_framebuffer_get_num_samples()
233 if (fb->cbufs[i]) { in util_framebuffer_get_num_samples()
234 return MAX2(1, fb->cbufs[i]->texture->nr_samples); in util_framebuffer_get_num_samples()
237 if (fb->zsbuf) { in util_framebuffer_get_num_samples()
238 return MAX2(1, fb->zsbuf->texture->nr_samples); in util_framebuffer_get_num_samples()