/third_party/mesa3d/src/gallium/frontends/wgl/ |
D | stw_device.c | 48 struct stw_device *stw_dev = NULL; variable 94 stw_winsys->get_adapter_luid(screen, hdc, &stw_dev->AdapterLuid); in init_screen() 96 stw_dev->smapi->screen = screen; in init_screen() 97 stw_dev->screen = screen; in init_screen() 98 stw_dev->zink = !memcmp(screen->get_name(screen), "zink", 4); in init_screen() 100 stw_dev->max_2d_length = screen->get_param(screen, in init_screen() 112 const char *driver_name = stw_dev->stw_winsys->get_name ? stw_dev->stw_winsys->get_name() : NULL; in init_options() 113 driParseOptionInfo(&stw_dev->option_info, gallium_driconf, ARRAY_SIZE(gallium_driconf)); in init_options() 114 driParseConfigFiles(&stw_dev->option_cache, &stw_dev->option_info, 0, in init_options() 117 u_driconf_fill_st_options(&stw_dev->st_options, &stw_dev->option_cache); in init_options() [all …]
|
D | stw_framebuffer.c | 58 for (fb = stw_dev->fb_head; fb != NULL; fb = fb->next) in stw_framebuffer_from_hwnd_locked() 69 assert(stw_dev->zink || fb->mutex.RecursionCount == 1); in stw_framebuffer_from_hwnd_locked() 92 assert(stw_own_mutex(&stw_dev->fb_mutex) || fb->owner == STW_FRAMEBUFFER_EGL_WINDOW); in stw_framebuffer_release_locked() 103 link = &stw_dev->fb_head; in stw_framebuffer_release_locked() 112 stw_dev->stw_winsys->shared_surface_close(stw_dev->screen, in stw_framebuffer_release_locked() 220 if (nCode < 0 || !stw_dev) in stw_call_window_proc() 228 if (stw_dev && stw_dev->initialized) { in stw_call_window_proc() 250 stw_lock_framebuffers(stw_dev); in stw_call_window_proc() 258 stw_unlock_framebuffers(stw_dev); in stw_call_window_proc() 284 if (stw_dev->stw_winsys->create_framebuffer) in stw_framebuffer_create() [all …]
|
D | stw_device.h | 98 extern struct stw_device *stw_dev; 109 if (dhglrc == 0 || stw_dev == NULL) in stw_lookup_context_locked() 111 return (struct stw_context *) handle_table_get(stw_dev->ctx_table, dhglrc); in stw_lookup_context_locked() 116 stw_lock_contexts(struct stw_device *stw_dev) in stw_lock_contexts() argument 118 EnterCriticalSection(&stw_dev->ctx_mutex); in stw_lock_contexts() 123 stw_unlock_contexts(struct stw_device *stw_dev) in stw_unlock_contexts() argument 125 LeaveCriticalSection(&stw_dev->ctx_mutex); in stw_unlock_contexts() 132 stw_lock_contexts(stw_dev); in stw_lookup_context() 134 stw_unlock_contexts(stw_dev); in stw_lookup_context() 140 stw_lock_framebuffers(struct stw_device *stw_dev) in stw_lock_framebuffers() argument [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() 177 if (!stw_dev) in stw_create_context_attribs() 279 attribs.options = stw_dev->st_options; in stw_create_context_attribs() 281 ctx->st = stw_dev->stapi->create_context(stw_dev->stapi, in stw_create_context_attribs() [all …]
|
D | stw_pixelformat.c | 133 stw_pixelformat_add(struct stw_device *stw_dev, in stw_pixelformat_add() argument 151 pfi = util_dynarray_grow(&stw_dev->pixelformats, in stw_pixelformat_add() 157 …pfi->iPixelFormat = util_dynarray_num_elements(&stw_dev->pixelformats, struct stw_pixelformat_info… in stw_pixelformat_add() 226 ++stw_dev->pixelformat_count; in stw_pixelformat_add() 227 assert(stw_dev->pixelformat_count == in stw_pixelformat_add() 228 util_dynarray_num_elements(&stw_dev->pixelformats, in stw_pixelformat_add() 241 struct pipe_screen *screen = stw_dev->screen; in add_color_format_variants() 248 if (stw_dev->stw_winsys && stw_dev->stw_winsys->get_pfd_flags) in add_color_format_variants() 249 supported_flags = stw_dev->stw_winsys->get_pfd_flags(screen); in add_color_format_variants() 305 stw_pixelformat_add(stw_dev, extended, &color_formats[cfmt], in add_color_format_variants() [all …]
|
D | stw_ext_context.c | 200 if (stw_dev && stw_dev->callbacks.pfnGetDhglrc) { in wglCreateContextAttribsARB() 201 dhglrc = stw_dev->callbacks.pfnGetDhglrc(context); in wglCreateContextAttribsARB() 203 share_dhglrc = stw_dev->callbacks.pfnGetDhglrc(hShareContext); in wglCreateContextAttribsARB() 241 if (stw_dev && stw_dev->callbacks.pfnGetDhglrc) { in wglMakeContextCurrentARB() 243 dhglrc = stw_dev->callbacks.pfnGetDhglrc(hglrc); in wglMakeContextCurrentARB()
|
D | stw_ext_swapinterval.c | 51 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()
|
D | stw_st.c | 210 if (stw_dev->zink) { in stw_st_framebuffer_validate_locked() 239 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked() 246 if (stw_dev->zink && in stw_st_framebuffer_validate_locked() 248 stw_dev->screen->resource_create_drawable) { in stw_st_framebuffer_validate_locked() 261 stw_dev->screen->resource_create_drawable(stw_dev->screen, in stw_st_framebuffer_validate_locked() 271 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked() 294 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked() 508 stwfb->base.state_manager = stw_dev->smapi; in stw_st_create_framebuffer() 536 stw_dev->stapi->destroy_drawable(stw_dev->stapi, &stwfb->base); in stw_st_destroy_framebuffer_locked()
|
D | stw_ext_pbuffer.c | 147 if (iWidth > stw_dev->max_2d_length) { in wglCreatePbufferARB() 149 iWidth = stw_dev->max_2d_length; in wglCreatePbufferARB() 156 if (iHeight > stw_dev->max_2d_length) { in wglCreatePbufferARB() 158 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()
|
/third_party/mesa3d/src/gallium/targets/libgl-d3d12/ |
D | libgl_d3d12.c | 80 if (!stw_dev || !stw_dev->callbacks.pfnGetAdapterLuid) in gdi_get_adapter_luid() 83 stw_dev->callbacks.pfnGetAdapterLuid(hDC, adapter_luid); in gdi_get_adapter_luid() 159 stw_dev = NULL; in DllMain()
|
/third_party/mesa3d/src/gallium/winsys/d3d12/wgl/ |
D | d3d12_wgl_winsys.c | 37 if (stw_dev && stw_dev->callbacks.pfnGetAdapterLuid) { in d3d12_wgl_create_screen() 38 stw_dev->callbacks.pfnGetAdapterLuid(hDC, &local_luid); in d3d12_wgl_create_screen()
|
D | d3d12_wgl_framebuffer.cpp | 161 if (stw_dev->swap_interval < 1) in d3d12_wgl_framebuffer_present() 164 return S_OK == framebuffer->swapchain->Present(stw_dev->swap_interval, 0); in d3d12_wgl_framebuffer_present()
|
/third_party/mesa3d/src/gallium/targets/wgl/ |
D | wgl.c | 214 if (!stw_dev || !stw_dev->callbacks.pfnGetAdapterLuid) in wgl_get_adapter_luid() 217 stw_dev->callbacks.pfnGetAdapterLuid(hDC, adapter_luid); in wgl_get_adapter_luid() 307 stw_dev = NULL; in DllMain()
|
/third_party/mesa3d/docs/relnotes/ |
D | 21.3.0.rst | 2142 - wgl: Add a stw_dev getter
|