Home
last modified time | relevance | path

Searched refs:stfb (Results 1 – 16 of 16) sorted by relevance

/external/mesa3d/src/gallium/state_trackers/vega/
Dvg_manager.c86 struct st_framebuffer *stfb = ctx->draw_buffer; in vg_manager_flush_frontbuffer() local
88 if (!stfb) in vg_manager_flush_frontbuffer()
91 switch (stfb->strb_att) { in vg_manager_flush_frontbuffer()
94 stfb->iface->flush_front(stfb->iface, stfb->strb_att); in vg_manager_flush_frontbuffer()
107 struct st_framebuffer *stfb = ctx->draw_buffer; in vg_manager_validate_framebuffer() local
112 if (!stfb) in vg_manager_validate_framebuffer()
115 new_stamp = p_atomic_read(&stfb->iface->stamp); in vg_manager_validate_framebuffer()
116 if (stfb->iface_stamp != new_stamp) { in vg_manager_validate_framebuffer()
119 if (!stfb->iface->validate(stfb->iface, &stfb->strb_att, in vg_manager_validate_framebuffer()
123 stfb->iface_stamp = new_stamp; in vg_manager_validate_framebuffer()
[all …]
Dvg_context.c290 struct st_framebuffer *stfb = ctx->draw_buffer; in vg_context_update_surface_mask_view() local
291 struct pipe_sampler_view *old_sampler_view = stfb->surface_mask_view; in vg_context_update_surface_mask_view()
304 stfb->surface_mask_view = create_tex_and_view(pipe, in vg_context_update_surface_mask_view()
307 if (!stfb->surface_mask_view) { in vg_context_update_surface_mask_view()
323 stfb->surface_mask_view->texture->width0), in vg_context_update_surface_mask_view()
325 stfb->surface_mask_view->texture->height0), in vg_context_update_surface_mask_view()
329 stfb->surface_mask_view->texture, in vg_context_update_surface_mask_view()
346 struct st_framebuffer *stfb = ctx->draw_buffer; in vg_context_update_blend_texture_view() local
347 struct pipe_sampler_view *old = stfb->blend_texture_view; in vg_context_update_blend_texture_view()
354 stfb->blend_texture_view = create_tex_and_view(pipe, in vg_context_update_blend_texture_view()
[all …]
Dmask.c104 struct st_framebuffer *stfb = ctx->draw_buffer; in read_alpha_mask() local
105 struct st_renderbuffer *strb = stfb->alpha_mask; in read_alpha_mask()
109 VGint y = (stfb->height - sy) - 1, yStep = -1; in read_alpha_mask()
124 y = (stfb->height - sy) - 1; in read_alpha_mask()
153 struct st_framebuffer *stfb = ctx->draw_buffer; in save_alpha_to_file() local
157 data = malloc(sizeof(int) * stfb->width * stfb->height); in save_alpha_to_file()
158 read_alpha_mask(data, stfb->width * sizeof(int), in save_alpha_to_file()
160 0, 0, stfb->width, stfb->height); in save_alpha_to_file()
163 stfb->width); in save_alpha_to_file()
165 stfb->height); in save_alpha_to_file()
[all …]
Dapi_images.c399 struct st_framebuffer *stfb = ctx->draw_buffer; in vegaReadPixels() local
400 struct st_renderbuffer *strb = stfb->strb; in vegaReadPixels()
434 if (sx + width > stfb->width || sy + height > stfb->height) { in vegaReadPixels()
435 width = stfb->width - sx; in vegaReadPixels()
436 height = stfb->height - sy; in vegaReadPixels()
443 VGint y = (stfb->height - sy) - 1, yStep = -1; in vegaReadPixels()
448 0, 0, sx + width, stfb->height - sy); in vegaReadPixels()
471 struct st_framebuffer *stfb = ctx->draw_buffer; in vegaCopyPixels() local
472 struct st_renderbuffer *strb = stfb->strb; in vegaCopyPixels()
480 if (dx >= (VGint)stfb->width || dy >= (VGint)stfb->height || in vegaCopyPixels()
[all …]
Dapi_masks.c75 struct st_framebuffer *stfb = ctx->draw_buffer; in vegaClear() local
94 (x == 0 && y == 0 && width == stfb->width && height == stfb->height)) { in vegaClear()
Dshader.c224 struct st_framebuffer *stfb = ctx->draw_buffer; in is_format_bw()
405 const struct st_framebuffer *stfb = shader->context->draw_buffer; in shader_set_paint_matrix() local
412 stfb->height - 1.0f + px_center_offset); in shader_set_paint_matrix()
Drenderer.c1329 const struct st_framebuffer *stfb, in renderer_validate() argument
1342 fb->width = stfb->width; in renderer_validate()
1343 fb->height = stfb->height; in renderer_validate()
1345 fb->cbufs[0] = stfb->strb->surface; in renderer_validate()
1346 fb->zsbuf = stfb->dsrb->surface; in renderer_validate()
1369 renderer_validate_blend(renderer, state, stfb->strb->format); in renderer_validate()
Drenderer.h51 const struct st_framebuffer *stfb,
/external/mesa3d/src/mesa/state_tracker/
Dst_manager.c181 st_framebuffer_validate(struct st_framebuffer *stfb, in st_framebuffer_validate() argument
188 int32_t new_stamp = p_atomic_read(&stfb->iface->stamp); in st_framebuffer_validate()
190 if (stfb->iface_stamp == new_stamp) in st_framebuffer_validate()
195 if (!stfb->iface->validate(stfb->iface, stfb->statts, in st_framebuffer_validate()
196 stfb->num_statts, textures)) in st_framebuffer_validate()
199 stfb->iface_stamp = new_stamp; in st_framebuffer_validate()
200 new_stamp = p_atomic_read(&stfb->iface->stamp); in st_framebuffer_validate()
201 } while(stfb->iface_stamp != new_stamp); in st_framebuffer_validate()
203 width = stfb->Base.Width; in st_framebuffer_validate()
204 height = stfb->Base.Height; in st_framebuffer_validate()
[all …]
/external/mesa3d/src/gallium/state_trackers/wgl/
Dstw_st.c50 stw_st_framebuffer(struct st_framebuffer_iface *stfb) in stw_st_framebuffer() argument
52 return (struct stw_st_framebuffer *) stfb; in stw_st_framebuffer()
59 stw_st_framebuffer_validate_locked(struct st_framebuffer_iface *stfb, in stw_st_framebuffer_validate_locked() argument
63 struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb); in stw_st_framebuffer_validate_locked()
124 stw_st_framebuffer_validate(struct st_framebuffer_iface *stfb, in stw_st_framebuffer_validate() argument
129 struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb); in stw_st_framebuffer_validate()
159 struct st_framebuffer_iface *stfb, in stw_st_framebuffer_present_locked() argument
162 struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb); in stw_st_framebuffer_present_locked()
174 stw_st_framebuffer_flush_front(struct st_framebuffer_iface *stfb, in stw_st_framebuffer_flush_front() argument
177 struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb); in stw_st_framebuffer_flush_front()
[all …]
Dstw_st.h44 stw_st_destroy_framebuffer_locked(struct st_framebuffer_iface *stfb);
47 stw_st_swap_framebuffer_locked(HDC hdc, struct st_framebuffer_iface *stfb);
Dstw_framebuffer.c93 stw_st_destroy_framebuffer_locked(fb->stfb); in stw_framebuffer_destroy_locked()
272 fb->stfb = stw_st_create_framebuffer( fb ); in stw_framebuffer_create()
273 if (!fb->stfb) { in stw_framebuffer_create()
346 assert(fb->stfb); in stw_framebuffer_update()
619 return stw_st_swap_framebuffer_locked(hdc, fb->stfb); in DrvSwapBuffers()
Dstw_framebuffer.h71 struct st_framebuffer_iface *stfb; member
Dstw_context.c379 fb->stfb, fb->stfb); in stw_make_current()
427 p_atomic_inc(&fb->stfb->stamp); in stw_notify_current_locked()
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_api.c467 b->stfb = xmesa_create_st_framebuffer(xmdpy, b); in create_xmesa_buffer()
525 xmesa_destroy_st_framebuffer(buffer->stfb); in xmesa_free_buffer()
1133 p_atomic_inc(&b->stfb->stamp); in xmesa_notify_invalid_buffer()
1189 stapi->make_current(stapi, c->st, drawBuffer->stfb, readBuffer->stfb); in XMesaMakeCurrent2()
1234 xmesa_swap_st_framebuffer(b->stfb); in XMesaSwapBuffers()
1244 xmesa_copy_st_framebuffer(b->stfb, in XMesaCopySubBuffer()
1348 struct st_framebuffer_iface* stfbi = drawable->stfb; in XMesaBindTexImage()
Dxm_api.h327 struct st_framebuffer_iface *stfb; member