Lines Matching refs:mesaCtx
713 struct gl_context *mesaCtx = NULL; in dri_create_context() local
756 mesaCtx = &ctx->Base; in dri_create_context()
759 if (!_mesa_initialize_context(mesaCtx, api, visual, sharedCtx, &functions, (void *) cPriv)) { in dri_create_context()
765 mesaCtx->Const.CheckArrayBounds = GL_TRUE; in dri_create_context()
768 _swrast_CreateContext( mesaCtx ); in dri_create_context()
769 _vbo_CreateContext( mesaCtx ); in dri_create_context()
770 _tnl_CreateContext( mesaCtx ); in dri_create_context()
771 _swsetup_CreateContext( mesaCtx ); in dri_create_context()
772 _swsetup_Wakeup( mesaCtx ); in dri_create_context()
776 TNLcontext *tnl = TNL_CONTEXT(mesaCtx); in dri_create_context()
780 _mesa_meta_init(mesaCtx); in dri_create_context()
781 _mesa_enable_sw_extensions(mesaCtx); in dri_create_context()
787 _mesa_enable_1_3_extensions(mesaCtx); in dri_create_context()
788 _mesa_enable_1_4_extensions(mesaCtx); in dri_create_context()
789 _mesa_enable_1_5_extensions(mesaCtx); in dri_create_context()
790 _mesa_enable_2_0_extensions(mesaCtx); in dri_create_context()
791 _mesa_enable_2_1_extensions(mesaCtx); in dri_create_context()
794 _mesa_enable_1_3_extensions(mesaCtx); in dri_create_context()
795 _mesa_enable_1_4_extensions(mesaCtx); in dri_create_context()
796 _mesa_enable_1_5_extensions(mesaCtx); in dri_create_context()
800 InitExtensionsES2( mesaCtx); in dri_create_context()
821 struct gl_context *mesaCtx; in dri_destroy_context() local
823 mesaCtx = &ctx->Base; in dri_destroy_context()
825 _mesa_meta_free(mesaCtx); in dri_destroy_context()
826 _swsetup_DestroyContext( mesaCtx ); in dri_destroy_context()
827 _swrast_DestroyContext( mesaCtx ); in dri_destroy_context()
828 _tnl_DestroyContext( mesaCtx ); in dri_destroy_context()
829 _vbo_DestroyContext( mesaCtx ); in dri_destroy_context()
830 _mesa_destroy_context( mesaCtx ); in dri_destroy_context()
839 struct gl_context *mesaCtx; in dri_make_current() local
854 mesaCtx = &ctx->Base; in dri_make_current()
859 if (mesaCtx == _mesa_get_current_context() in dri_make_current()
860 && mesaCtx->DrawBuffer == mesaDraw in dri_make_current()
861 && mesaCtx->ReadBuffer == mesaRead) { in dri_make_current()
867 swrast_check_and_update_window_size(mesaCtx, mesaDraw); in dri_make_current()
869 swrast_check_and_update_window_size(mesaCtx, mesaRead); in dri_make_current()
871 _mesa_make_current( mesaCtx, in dri_make_current()