Lines Matching full:stwfb
63 struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb);
68 if (stwfb->texture_width != width || stwfb->texture_height != height) {
70 pipe_resource_reference(&stwfb->textures[i], NULL);
86 if (stwfb->textures[i] || !(mask & (1 << i))) {
88 if (stwfb->textures[i])
96 format = stwfb->stvis.color_format;
101 format = stwfb->stvis.depth_stencil_format;
113 stwfb->textures[i] =
118 stwfb->texture_width = width;
119 stwfb->texture_height = height;
120 stwfb->texture_mask = mask;
129 struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb);
136 pipe_mutex_lock(stwfb->fb->mutex);
138 if (stwfb->fb->must_resize || (statt_mask & ~stwfb->texture_mask)) {
139 stw_st_framebuffer_validate_locked(&stwfb->base,
140 stwfb->fb->width, stwfb->fb->height, statt_mask);
141 stwfb->fb->must_resize = FALSE;
146 pipe_resource_reference(&out[i], stwfb->textures[statts[i]]);
149 stw_framebuffer_release(stwfb->fb);
162 struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb);
165 resource = stwfb->textures[statt];
167 stw_framebuffer_present_locked(hdc, stwfb->fb, resource);
177 struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb);
179 pipe_mutex_lock(stwfb->fb->mutex);
181 return stw_st_framebuffer_present_locked(stwfb->fb->hDC, &stwfb->base, statt);
190 struct stw_st_framebuffer *stwfb;
192 stwfb = CALLOC_STRUCT(stw_st_framebuffer);
193 if (!stwfb)
196 stwfb->fb = fb;
197 stwfb->stvis = fb->pfi->stvis;
199 stwfb->base.visual = &stwfb->stvis;
200 p_atomic_set(&stwfb->base.stamp, 1);
201 stwfb->base.flush_front = stw_st_framebuffer_flush_front;
202 stwfb->base.validate = stw_st_framebuffer_validate;
204 return &stwfb->base;
213 struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb);
217 pipe_resource_reference(&stwfb->textures[i], NULL);
219 FREE(stwfb);
228 struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb);
234 ptex = stwfb->textures[front];
235 stwfb->textures[front] = stwfb->textures[back];
236 stwfb->textures[back] = ptex;
243 mask = stwfb->texture_mask & ~(front | back);
244 if (stwfb->texture_mask & front)
246 if (stwfb->texture_mask & back)
248 stwfb->texture_mask = mask;
251 return stw_st_framebuffer_present_locked(hdc, &stwfb->base, front);