Searched refs:stw_dev (Results 1 – 12 of 12) sorted by relevance
/external/mesa3d/src/gallium/state_trackers/wgl/ |
D | stw_device.c | 45 struct stw_device *stw_dev = NULL; variable 94 assert(!stw_dev); in stw_init() 98 stw_dev = &stw_dev_storage; in stw_init() 99 memset(stw_dev, 0, sizeof(*stw_dev)); in stw_init() 102 stw_dev->memdbg_no = debug_memory_begin(); in stw_init() 105 stw_dev->stw_winsys = stw_winsys; in stw_init() 107 stw_dev->stapi = stw_st_create_api(); in stw_init() 108 stw_dev->smapi = CALLOC_STRUCT(st_manager); in stw_init() 109 if (!stw_dev->stapi || !stw_dev->smapi) in stw_init() 117 stw_winsys->get_adapter_luid(screen, &stw_dev->AdapterLuid); in stw_init() [all …]
|
D | stw_framebuffer.c | 56 for (fb = stw_dev->fb_head; fb != NULL; fb = fb->next) in stw_framebuffer_from_hwnd_locked() 81 assert(stw_own_mutex(&stw_dev->fb_mutex)); in stw_framebuffer_release_locked() 91 link = &stw_dev->fb_head; in stw_framebuffer_release_locked() 99 stw_dev->stw_winsys->shared_surface_close(stw_dev->screen, in stw_framebuffer_release_locked() 204 if (nCode < 0 || !stw_dev) in stw_call_window_proc() 212 if (stw_dev && stw_dev->initialized) { in stw_call_window_proc() 234 stw_lock_framebuffers(stw_dev); in stw_call_window_proc() 238 stw_unlock_framebuffers(stw_dev); in stw_call_window_proc() 274 fb->iDisplayablePixelFormat = iPixelFormat <= stw_dev->pixelformat_count in stw_framebuffer_create() 309 stw_lock_framebuffers(stw_dev); in stw_framebuffer_create() [all …]
|
D | stw_context.c | 57 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 …]
|
D | stw_device.h | 89 extern struct stw_device *stw_dev; 95 if (dhglrc == 0 || stw_dev == NULL) in stw_lookup_context_locked() 97 return (struct stw_context *) handle_table_get(stw_dev->ctx_table, dhglrc); in stw_lookup_context_locked() 102 stw_lock_contexts(struct stw_device *stw_dev) in stw_lock_contexts() argument 104 EnterCriticalSection(&stw_dev->ctx_mutex); in stw_lock_contexts() 109 stw_unlock_contexts(struct stw_device *stw_dev) in stw_unlock_contexts() argument 111 LeaveCriticalSection(&stw_dev->ctx_mutex); in stw_unlock_contexts() 116 stw_lock_framebuffers(struct stw_device *stw_dev) in stw_lock_framebuffers() argument 118 EnterCriticalSection(&stw_dev->fb_mutex); in stw_lock_framebuffers() 123 stw_unlock_framebuffers(struct stw_device *stw_dev) in stw_unlock_framebuffers() argument [all …]
|
D | stw_pixelformat.c | 124 stw_pixelformat_add(struct stw_device *stw_dev, in stw_pixelformat_add() argument 134 assert(stw_dev->pixelformat_extended_count < STW_MAX_PIXELFORMATS); in stw_pixelformat_add() 135 if (stw_dev->pixelformat_extended_count >= STW_MAX_PIXELFORMATS) in stw_pixelformat_add() 145 pfi = &stw_dev->pixelformats[stw_dev->pixelformat_extended_count]; in stw_pixelformat_add() 214 ++stw_dev->pixelformat_extended_count; in stw_pixelformat_add() 217 ++stw_dev->pixelformat_count; in stw_pixelformat_add() 218 assert(stw_dev->pixelformat_count == stw_dev->pixelformat_extended_count); in stw_pixelformat_add() 230 struct pipe_screen *screen = stw_dev->screen; in add_color_format_variants() 275 stw_pixelformat_add(stw_dev, extended, &color_formats[cfmt], in add_color_format_variants() 294 assert(!stw_dev->pixelformat_count); in stw_pixelformat_init() [all …]
|
D | stw_ext_context.c | 175 if (stw_dev && stw_dev->callbacks.wglCbGetDhglrc) { in wglCreateContextAttribsARB() 176 dhglrc = stw_dev->callbacks.wglCbGetDhglrc(context); in wglCreateContextAttribsARB() 178 share_dhglrc = stw_dev->callbacks.wglCbGetDhglrc(hShareContext); in wglCreateContextAttribsARB() 206 if (stw_dev && stw_dev->callbacks.wglCbGetDhglrc) { in wglMakeContextCurrentARB() 208 dhglrc = stw_dev->callbacks.wglCbGetDhglrc(hglrc); in wglMakeContextCurrentARB()
|
D | stw_ext_swapinterval.c | 51 if (stw_dev) { in wglSwapIntervalEXT() 52 stw_dev->swap_interval = interval; in wglSwapIntervalEXT() 61 return stw_dev ? stw_dev->swap_interval : 0; in wglGetSwapIntervalEXT()
|
D | stw_st.c | 133 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked() 236 stwfb->base.state_manager = stw_dev->smapi; in stw_st_create_framebuffer() 261 stw_dev->stapi->destroy_drawable(stw_dev->stapi, &stwfb->base); in stw_st_destroy_framebuffer_locked()
|
D | stw_ext_pbuffer.c | 146 if (iWidth > stw_dev->max_2d_length) { in wglCreatePbufferARB() 148 iWidth = stw_dev->max_2d_length; in wglCreatePbufferARB() 155 if (iHeight > stw_dev->max_2d_length) { in wglCreatePbufferARB() 157 iHeight = stw_dev->max_2d_length; in wglCreatePbufferARB()
|
D | stw_ext_pixelformat.c | 258 *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()
|
D | stw_getprocaddress.c | 95 if (!stw_dev) in DrvGetProcAddress()
|
/external/mesa3d/src/gallium/targets/libgl-gdi/ |
D | libgl_gdi.c | 202 stw_dev = NULL; in DllMain()
|