MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / fconfig_init

Function fconfig_init

server/fakerconfig.cpp:166–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165
166static void fconfig_init(void)
167{
168 CriticalSection::SafeLock l(fcmutex);
169 memset(&fconfig, 0, sizeof(FakerConfig));
170 memset(&fconfig_env, 0, sizeof(FakerConfig));
171 fconfig.compress = -1;
172 strncpy(fconfig.config, VGLCONFIG_PATH, MAXSTR);
173 #ifdef sun
174 fconfig.dlsymloader = true;
175 #endif
176 #ifdef FAKEXCB
177 fconfig.fakeXCB = 1;
178 #endif
179 fconfig.forcealpha = 0;
180 fconfig_setgamma(fconfig, 1.0);
181 fconfig.glflushtrigger = 1;
182 fconfig.gui = 1;
183 fconfig.guikey = XK_F9;
184 fconfig.guimod = ShiftMask | ControlMask;
185 fconfig.interframe = 1;
186 strncpy(fconfig.localdpystring, ":0", MAXSTR);
187 fconfig.np = 1;
188 fconfig.port = -1;
189 fconfig.probeglx = -1;
190 fconfig.qual = DEFQUAL;
191 fconfig.readback = RRREAD_PBO;
192 fconfig.refreshrate = 60.0;
193 fconfig.samples = -1;
194 fconfig.spoil = 1;
195 fconfig.spoillast = 1;
196 fconfig.stereo = RRSTEREO_QUADBUF;
197 fconfig.subsamp = -1;
198 fconfig.tilesize = RR_DEFAULTTILESIZE;
199 fconfig.transpixel = -1;
200 fconfig_reloadenv();
201 #ifdef USEHELGRIND
202 ANNOTATE_BENIGN_RACE_SIZED(&fconfig.egl, sizeof(bool), );
203 ANNOTATE_BENIGN_RACE_SIZED(&fconfig.flushdelay, sizeof(double), );
204 #endif
205}
206
207
208static void fconfig_buildlut(FakerConfig &fc)

Callers 1

fconfig_getinstanceFunction · 0.85

Calls 2

fconfig_setgammaFunction · 0.85
fconfig_reloadenvFunction · 0.85

Tested by

no test coverage detected