Home
last modified time | relevance | path

Searched refs:stw_dev (Results 1 – 12 of 12) sorted by relevance

/external/mesa3d/src/gallium/frontends/wgl/
Dstw_device.c45 struct stw_device *stw_dev = NULL; variable
91 stw_winsys->get_adapter_luid(screen, &stw_dev->AdapterLuid); in init_screen()
93 stw_dev->smapi->screen = screen; in init_screen()
94 stw_dev->screen = screen; in init_screen()
96 stw_dev->max_2d_length = screen->get_param(screen, in init_screen()
108 assert(!stw_dev); in stw_init()
112 stw_dev = &stw_dev_storage; in stw_init()
113 memset(stw_dev, 0, sizeof(*stw_dev)); in stw_init()
115 stw_dev->stw_winsys = stw_winsys; in stw_init()
117 stw_dev->stapi = stw_st_create_api(); in stw_init()
[all …]
Dstw_framebuffer.c57 for (fb = stw_dev->fb_head; fb != NULL; fb = fb->next) in stw_framebuffer_from_hwnd_locked()
82 assert(stw_own_mutex(&stw_dev->fb_mutex)); in stw_framebuffer_release_locked()
92 link = &stw_dev->fb_head; in stw_framebuffer_release_locked()
100 stw_dev->stw_winsys->shared_surface_close(stw_dev->screen, in stw_framebuffer_release_locked()
205 if (nCode < 0 || !stw_dev) in stw_call_window_proc()
213 if (stw_dev && stw_dev->initialized) { in stw_call_window_proc()
235 stw_lock_framebuffers(stw_dev); in stw_call_window_proc()
239 stw_unlock_framebuffers(stw_dev); in stw_call_window_proc()
275 fb->iDisplayablePixelFormat = iPixelFormat <= stw_dev->pixelformat_count in stw_framebuffer_create()
310 stw_lock_framebuffers(stw_dev); in stw_framebuffer_create()
[all …]
Dstw_device.h91 extern struct stw_device *stw_dev;
99 if (dhglrc == 0 || stw_dev == NULL) in stw_lookup_context_locked()
101 return (struct stw_context *) handle_table_get(stw_dev->ctx_table, dhglrc); in stw_lookup_context_locked()
106 stw_lock_contexts(struct stw_device *stw_dev) in stw_lock_contexts() argument
108 EnterCriticalSection(&stw_dev->ctx_mutex); in stw_lock_contexts()
113 stw_unlock_contexts(struct stw_device *stw_dev) in stw_unlock_contexts() argument
115 LeaveCriticalSection(&stw_dev->ctx_mutex); in stw_unlock_contexts()
120 stw_lock_framebuffers(struct stw_device *stw_dev) in stw_lock_framebuffers() argument
122 EnterCriticalSection(&stw_dev->fb_mutex); in stw_lock_framebuffers()
127 stw_unlock_framebuffers(struct stw_device *stw_dev) in stw_unlock_framebuffers() argument
[all …]
Dstw_context.c57 st = (stw_dev) ? stw_dev->stapi->get_current(stw_dev->stapi) : NULL; in stw_current_context()
70 if (!stw_dev) in DrvCopyContext()
73 stw_lock_contexts(stw_dev); in DrvCopyContext()
86 stw_unlock_contexts(stw_dev); in DrvCopyContext()
99 if (!stw_dev) in DrvShareLists()
102 stw_lock_contexts(stw_dev); in DrvShareLists()
113 stw_unlock_contexts(stw_dev); in DrvShareLists()
175 if (!stw_dev) in stw_create_context_attribs()
204 stw_lock_contexts(stw_dev); in stw_create_context_attribs()
207 stw_unlock_contexts(stw_dev); in stw_create_context_attribs()
[all …]
Dstw_pixelformat.c125 stw_pixelformat_add(struct stw_device *stw_dev, in stw_pixelformat_add() argument
135 assert(stw_dev->pixelformat_extended_count < STW_MAX_PIXELFORMATS); in stw_pixelformat_add()
136 if (stw_dev->pixelformat_extended_count >= STW_MAX_PIXELFORMATS) in stw_pixelformat_add()
146 pfi = &stw_dev->pixelformats[stw_dev->pixelformat_extended_count]; in stw_pixelformat_add()
215 ++stw_dev->pixelformat_extended_count; in stw_pixelformat_add()
218 ++stw_dev->pixelformat_count; in stw_pixelformat_add()
219 assert(stw_dev->pixelformat_count == stw_dev->pixelformat_extended_count); in stw_pixelformat_add()
231 struct pipe_screen *screen = stw_dev->screen; in add_color_format_variants()
277 stw_pixelformat_add(stw_dev, extended, &color_formats[cfmt], in add_color_format_variants()
296 assert(!stw_dev->pixelformat_count); in stw_pixelformat_init()
[all …]
Dstw_ext_context.c175 if (stw_dev && stw_dev->callbacks.pfnGetDhglrc) { in wglCreateContextAttribsARB()
176 dhglrc = stw_dev->callbacks.pfnGetDhglrc(context); in wglCreateContextAttribsARB()
178 share_dhglrc = stw_dev->callbacks.pfnGetDhglrc(hShareContext); in wglCreateContextAttribsARB()
206 if (stw_dev && stw_dev->callbacks.pfnGetDhglrc) { in wglMakeContextCurrentARB()
208 dhglrc = stw_dev->callbacks.pfnGetDhglrc(hglrc); in wglMakeContextCurrentARB()
Dstw_ext_swapinterval.c51 if (stw_dev && !os_get_option("WGL_SWAP_INTERVAL")) { in wglSwapIntervalEXT()
52 stw_dev->swap_interval = interval; in wglSwapIntervalEXT()
61 return stw_dev ? stw_dev->swap_interval : 0; in wglGetSwapIntervalEXT()
Dstw_st.c139 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked()
145 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked()
304 stwfb->base.state_manager = stw_dev->smapi; in stw_st_create_framebuffer()
331 stw_dev->stapi->destroy_drawable(stw_dev->stapi, &stwfb->base); in stw_st_destroy_framebuffer_locked()
Dstw_ext_pbuffer.c148 if (iWidth > stw_dev->max_2d_length) { in wglCreatePbufferARB()
150 iWidth = stw_dev->max_2d_length; in wglCreatePbufferARB()
157 if (iHeight > stw_dev->max_2d_length) { in wglCreatePbufferARB()
159 iHeight = stw_dev->max_2d_length; in wglCreatePbufferARB()
Dstw_ext_pixelformat.c258 *pvalue = stw_dev->max_2d_length; in stw_query_attrib()
262 *pvalue = stw_dev->max_2d_length * stw_dev->max_2d_length; in stw_query_attrib()
Dstw_getprocaddress.c95 if (!stw_dev) in DrvGetProcAddress()
/external/mesa3d/src/gallium/targets/libgl-gdi/
Dlibgl_gdi.c212 stw_dev = NULL; in DllMain()