Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/frontends/wgl/
Dstw_device.c47 struct stw_device *stw_dev = NULL; variable
93 stw_winsys->get_adapter_luid(screen, hdc, &stw_dev->AdapterLuid); in init_screen()
95 stw_dev->smapi->screen = screen; in init_screen()
96 stw_dev->screen = screen; in init_screen()
98 stw_dev->max_2d_length = screen->get_param(screen, in init_screen()
110 const char *driver_name = stw_dev->stw_winsys->get_name ? stw_dev->stw_winsys->get_name() : NULL; in init_options()
111 driParseOptionInfo(&stw_dev->option_info, gallium_driconf, ARRAY_SIZE(gallium_driconf)); in init_options()
112 driParseConfigFiles(&stw_dev->option_cache, &stw_dev->option_info, 0, in init_options()
115 u_driconf_fill_st_options(&stw_dev->st_options, &stw_dev->option_cache); in init_options()
125 assert(!stw_dev); in stw_init()
[all …]
Dstw_framebuffer.c58 for (fb = stw_dev->fb_head; fb != NULL; fb = fb->next) in stw_framebuffer_from_hwnd_locked()
84 assert(stw_own_mutex(&stw_dev->fb_mutex) || fb->owner == STW_FRAMEBUFFER_EGL_WINDOW); in stw_framebuffer_release_locked()
95 link = &stw_dev->fb_head; in stw_framebuffer_release_locked()
104 stw_dev->stw_winsys->shared_surface_close(stw_dev->screen, in stw_framebuffer_release_locked()
212 if (nCode < 0 || !stw_dev) in stw_call_window_proc()
220 if (stw_dev && stw_dev->initialized) { in stw_call_window_proc()
242 stw_lock_framebuffers(stw_dev); in stw_call_window_proc()
250 stw_unlock_framebuffers(stw_dev); in stw_call_window_proc()
276 if (stw_dev->stw_winsys->create_framebuffer) in stw_framebuffer_create()
278 stw_dev->stw_winsys->create_framebuffer(stw_dev->screen, hWnd, iPixelFormat); in stw_framebuffer_create()
[all …]
Dstw_device.h97 extern struct stw_device *stw_dev;
108 if (dhglrc == 0 || stw_dev == NULL) in stw_lookup_context_locked()
110 return (struct stw_context *) handle_table_get(stw_dev->ctx_table, dhglrc); in stw_lookup_context_locked()
115 stw_lock_contexts(struct stw_device *stw_dev) in stw_lock_contexts() argument
117 EnterCriticalSection(&stw_dev->ctx_mutex); in stw_lock_contexts()
122 stw_unlock_contexts(struct stw_device *stw_dev) in stw_unlock_contexts() argument
124 LeaveCriticalSection(&stw_dev->ctx_mutex); in stw_unlock_contexts()
131 stw_lock_contexts(stw_dev); in stw_lookup_context()
133 stw_unlock_contexts(stw_dev); in stw_lookup_context()
139 stw_lock_framebuffers(struct stw_device *stw_dev) in stw_lock_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()
177 if (!stw_dev) in stw_create_context_attribs()
275 attribs.options = stw_dev->st_options; in stw_create_context_attribs()
277 ctx->st = stw_dev->stapi->create_context(stw_dev->stapi, in stw_create_context_attribs()
[all …]
Dstw_pixelformat.c133 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()
295 stw_pixelformat_add(stw_dev, extended, &color_formats[cfmt], in add_color_format_variants()
[all …]
Dstw_ext_context.c189 if (stw_dev && stw_dev->callbacks.pfnGetDhglrc) { in wglCreateContextAttribsARB()
190 dhglrc = stw_dev->callbacks.pfnGetDhglrc(context); in wglCreateContextAttribsARB()
192 share_dhglrc = stw_dev->callbacks.pfnGetDhglrc(hShareContext); in wglCreateContextAttribsARB()
229 if (stw_dev && stw_dev->callbacks.pfnGetDhglrc) { in wglMakeContextCurrentARB()
231 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.c207 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked()
217 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked()
237 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked()
443 stwfb->base.state_manager = stw_dev->smapi; in stw_st_create_framebuffer()
471 stw_dev->stapi->destroy_drawable(stw_dev->stapi, &stwfb->base); in stw_st_destroy_framebuffer_locked()
Dstw_ext_pbuffer.c147 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()
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()
/third_party/mesa3d/src/gallium/targets/libgl-d3d12/
Dlibgl_d3d12.c80 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/
Dd3d12_wgl_winsys.c37 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()
Dd3d12_wgl_framebuffer.cpp158 if (stw_dev->swap_interval < 1) in d3d12_wgl_framebuffer_present()
161 return S_OK == framebuffer->swapchain->Present(stw_dev->swap_interval, 0); in d3d12_wgl_framebuffer_present()
/third_party/mesa3d/src/gallium/targets/wgl/
Dwgl.c234 if (!stw_dev || !stw_dev->callbacks.pfnGetAdapterLuid) in wgl_get_adapter_luid()
237 stw_dev->callbacks.pfnGetAdapterLuid(hDC, adapter_luid); in wgl_get_adapter_luid()
327 stw_dev = NULL; in DllMain()
/third_party/mesa3d/docs/relnotes/
D21.3.0.rst2142 - wgl: Add a stw_dev getter