Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/state_trackers/wgl/
Dstw_device.c45 struct stw_device *stw_dev = NULL; variable
74 assert(!stw_dev); in stw_init()
78 stw_dev = &stw_dev_storage; in stw_init()
79 memset(stw_dev, 0, sizeof(*stw_dev)); in stw_init()
82 stw_dev->memdbg_no = debug_memory_begin(); in stw_init()
85 stw_dev->stw_winsys = stw_winsys; in stw_init()
87 stw_dev->stapi = stw_st_create_api(); in stw_init()
88 stw_dev->smapi = CALLOC_STRUCT(st_manager); in stw_init()
89 if (!stw_dev->stapi || !stw_dev->smapi) in stw_init()
97 stw_winsys->get_adapter_luid(screen, &stw_dev->AdapterLuid); in stw_init()
[all …]
Dstw_framebuffer.c55 for (fb = stw_dev->fb_head; fb != NULL; fb = fb->next) in stw_framebuffer_from_hwnd_locked()
83 link = &stw_dev->fb_head; in stw_framebuffer_destroy_locked()
91 stw_dev->stw_winsys->shared_surface_close(stw_dev->screen, fb->shared_surface); in stw_framebuffer_destroy_locked()
206 if (nCode < 0 || !stw_dev) in stw_call_window_proc()
228 pipe_mutex_lock( stw_dev->fb_mutex ); in stw_call_window_proc()
232 pipe_mutex_unlock( stw_dev->fb_mutex ); in stw_call_window_proc()
269 fb->iDisplayablePixelFormat = iPixelFormat <= stw_dev->pixelformat_count ? iPixelFormat : 1; in stw_framebuffer_create()
303 pipe_mutex_lock( stw_dev->fb_mutex ); in stw_framebuffer_create()
304 fb->next = stw_dev->fb_head; in stw_framebuffer_create()
305 stw_dev->fb_head = fb; in stw_framebuffer_create()
[all …]
Dstw_context.c56 st = (stw_dev) ? stw_dev->stapi->get_current(stw_dev->stapi) : NULL; in stw_current_context()
71 if (!stw_dev) in DrvCopyContext()
74 pipe_mutex_lock( stw_dev->ctx_mutex ); in DrvCopyContext()
87 pipe_mutex_unlock( stw_dev->ctx_mutex ); in DrvCopyContext()
101 if (!stw_dev) in DrvShareLists()
104 pipe_mutex_lock( stw_dev->ctx_mutex ); in DrvShareLists()
112 pipe_mutex_unlock( stw_dev->ctx_mutex ); in DrvShareLists()
149 if (!stw_dev) in stw_create_context_attribs()
175 pipe_mutex_lock( stw_dev->ctx_mutex ); in stw_create_context_attribs()
177 pipe_mutex_unlock( stw_dev->ctx_mutex ); in stw_create_context_attribs()
[all …]
Dstw_pixelformat.c122 struct stw_device *stw_dev, in stw_pixelformat_add() argument
132 assert(stw_dev->pixelformat_extended_count < STW_MAX_PIXELFORMATS); in stw_pixelformat_add()
133 if(stw_dev->pixelformat_extended_count >= STW_MAX_PIXELFORMATS) in stw_pixelformat_add()
143 pfi = &stw_dev->pixelformats[stw_dev->pixelformat_extended_count]; in stw_pixelformat_add()
205 ++stw_dev->pixelformat_extended_count; in stw_pixelformat_add()
208 ++stw_dev->pixelformat_count; in stw_pixelformat_add()
209 assert(stw_dev->pixelformat_count == stw_dev->pixelformat_extended_count); in stw_pixelformat_add()
221 struct pipe_screen *screen = stw_dev->screen; in add_color_format_variants()
254 stw_pixelformat_add(stw_dev, extended, color, depth, in add_color_format_variants()
268 assert( !stw_dev->pixelformat_count ); in stw_pixelformat_init()
[all …]
Dstw_ext_gallium.c38 return stw_dev ? stw_dev->screen : NULL; in wglGetGalliumScreenMESA()
46 if(!stw_dev) in wglCreateGalliumContextMESA()
49 return stw_dev->screen->context_create( stw_dev->screen, NULL ); in wglCreateGalliumContextMESA()
Dstw_ext_pbuffer.c111 if (iWidth > stw_dev->max_2d_length) { in wglCreatePbufferARB()
113 iWidth = stw_dev->max_2d_length; in wglCreatePbufferARB()
120 if (iHeight > stw_dev->max_2d_length) { in wglCreatePbufferARB()
122 iHeight = stw_dev->max_2d_length; in wglCreatePbufferARB()
Dstw_ext_pixelformat.c247 *pvalue = stw_dev->max_2d_length; in stw_query_attrib()
251 *pvalue = stw_dev->max_2d_length * stw_dev->max_2d_length; in stw_query_attrib()
Dstw_device.h82 extern struct stw_device *stw_dev;
Dstw_st.c114 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked()
Dstw_getprocaddress.c88 if (!stw_dev) in DrvGetProcAddress()