/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/wgl/ |
D | stw_device.c | 45 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 …]
|
D | stw_framebuffer.c | 55 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 …]
|
D | stw_context.c | 56 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 …]
|
D | stw_pixelformat.c | 122 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 …]
|
D | stw_ext_gallium.c | 38 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()
|
D | stw_ext_pbuffer.c | 111 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()
|
D | stw_device.h | 82 extern struct stw_device *stw_dev;
|
D | stw_ext_pixelformat.c | 247 *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()
|
D | stw_st.c | 114 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked()
|
D | stw_getprocaddress.c | 88 if (!stw_dev) in DrvGetProcAddress()
|
/external/mesa3d/src/gallium/state_trackers/wgl/ |
D | stw_device.c | 45 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 …]
|
D | stw_framebuffer.c | 55 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 …]
|
D | stw_context.c | 56 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 …]
|
D | stw_pixelformat.c | 122 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 …]
|
D | stw_ext_gallium.c | 38 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()
|
D | stw_ext_pbuffer.c | 111 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()
|
D | stw_device.h | 82 extern struct stw_device *stw_dev;
|
D | stw_ext_pixelformat.c | 247 *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()
|
D | stw_st.c | 114 stw_dev->screen->resource_create(stw_dev->screen, &templ); in stw_st_framebuffer_validate_locked()
|
D | stw_getprocaddress.c | 88 if (!stw_dev) in DrvGetProcAddress()
|