Lines Matching refs:fb
101 util_unreference_framebuffer_state(struct pipe_framebuffer_state *fb) in util_unreference_framebuffer_state() argument
105 for (i = 0; i < fb->nr_cbufs; i++) { in util_unreference_framebuffer_state()
106 pipe_surface_reference(&fb->cbufs[i], NULL); in util_unreference_framebuffer_state()
109 pipe_surface_reference(&fb->zsbuf, NULL); in util_unreference_framebuffer_state()
111 fb->width = fb->height = 0; in util_unreference_framebuffer_state()
112 fb->nr_cbufs = 0; in util_unreference_framebuffer_state()
120 util_framebuffer_min_size(const struct pipe_framebuffer_state *fb, in util_framebuffer_min_size() argument
128 for (i = 0; i < fb->nr_cbufs; i++) { in util_framebuffer_min_size()
129 w = MIN2(w, fb->cbufs[i]->width); in util_framebuffer_min_size()
130 h = MIN2(h, fb->cbufs[i]->height); in util_framebuffer_min_size()
133 if (fb->zsbuf) { in util_framebuffer_min_size()
134 w = MIN2(w, fb->zsbuf->width); in util_framebuffer_min_size()
135 h = MIN2(h, fb->zsbuf->height); in util_framebuffer_min_size()