Home
last modified time | relevance | path

Searched refs:api_mask (Results 1 – 3 of 3) sorted by relevance

/third_party/mesa3d/src/mesa/drivers/dri/common/
Ddri_util.c181 psp->api_mask = 0; in driCreateNewScreen2()
183 psp->api_mask |= (1 << __DRI_API_OPENGL); in driCreateNewScreen2()
185 psp->api_mask |= (1 << __DRI_API_OPENGL_CORE); in driCreateNewScreen2()
187 psp->api_mask |= (1 << __DRI_API_GLES); in driCreateNewScreen2()
189 psp->api_mask |= (1 << __DRI_API_GLES2); in driCreateNewScreen2()
191 psp->api_mask |= (1 << __DRI_API_GLES3); in driCreateNewScreen2()
322 if (!(screen->api_mask & (1 << api))) { in driCreateContextAttribs()
789 return screen->api_mask; in driGetAPIMask()
Ddri_util.h226 unsigned int api_mask; member
/third_party/mesa3d/src/egl/drivers/dri2/
Degl_dri2.c889 unsigned int api_mask; in dri2_setup_screen() local
904 api_mask = dri2_dpy->image_driver->getAPIMask(dri2_dpy->dri_screen); in dri2_setup_screen()
906 api_mask = dri2_dpy->dri2->getAPIMask(dri2_dpy->dri_screen); in dri2_setup_screen()
909 api_mask = 1 << __DRI_API_OPENGL | in dri2_setup_screen()
916 if ((api_mask & (1 <<__DRI_API_OPENGL)) && _eglIsApiValid(EGL_OPENGL_API)) in dri2_setup_screen()
918 if ((api_mask & (1 << __DRI_API_GLES)) && _eglIsApiValid(EGL_OPENGL_ES_API)) in dri2_setup_screen()
920 if ((api_mask & (1 << __DRI_API_GLES2)) && _eglIsApiValid(EGL_OPENGL_ES_API)) in dri2_setup_screen()
922 if ((api_mask & (1 << __DRI_API_GLES3)) && _eglIsApiValid(EGL_OPENGL_ES_API)) in dri2_setup_screen()