Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/frontends/dri/
Ddri_util.c163 psp->api_mask = 0; in driCreateNewScreen2()
165 psp->api_mask |= (1 << __DRI_API_OPENGL); in driCreateNewScreen2()
167 psp->api_mask |= (1 << __DRI_API_OPENGL_CORE); in driCreateNewScreen2()
169 psp->api_mask |= (1 << __DRI_API_GLES); in driCreateNewScreen2()
171 psp->api_mask |= (1 << __DRI_API_GLES2); in driCreateNewScreen2()
173 psp->api_mask |= (1 << __DRI_API_GLES3); in driCreateNewScreen2()
467 if (!(screen->api_mask & (1 << api))) { in driCreateContextAttribs()
930 return screen->api_mask; in driGetAPIMask()
Ddri_util.h212 unsigned int api_mask; member
/third_party/mesa3d/src/egl/drivers/dri2/
Degl_dri2.c892 unsigned int api_mask; in dri2_setup_screen() local
907 api_mask = dri2_dpy->image_driver->getAPIMask(dri2_dpy->dri_screen); in dri2_setup_screen()
909 api_mask = dri2_dpy->dri2->getAPIMask(dri2_dpy->dri_screen); in dri2_setup_screen()
912 api_mask = 1 << __DRI_API_OPENGL | in dri2_setup_screen()
919 if ((api_mask & (1 <<__DRI_API_OPENGL)) && _eglIsApiValid(EGL_OPENGL_API)) in dri2_setup_screen()
921 if ((api_mask & (1 << __DRI_API_GLES)) && _eglIsApiValid(EGL_OPENGL_ES_API)) in dri2_setup_screen()
923 if ((api_mask & (1 << __DRI_API_GLES2)) && _eglIsApiValid(EGL_OPENGL_ES_API)) in dri2_setup_screen()
925 if ((api_mask & (1 << __DRI_API_GLES3)) && _eglIsApiValid(EGL_OPENGL_ES_API)) in dri2_setup_screen()