void dist_texturespuGatherConfiguration( void ) { CRConnection *conn; char response[8096]; __setDefaults(); /* Connect to the mothership and identify ourselves. */ conn = crMothershipConnect( ); if (!conn) { /* The mothership isn't running. Some SPU's can recover gracefully, some * should issue an error here. */ return; } crMothershipIdentifySPU( conn, dist_texture_spu.id ); /* CONFIGURATION STUFF HERE */ crSPUGetMothershipParams( conn, &dist_texture_spu, dist_textureSPUOptions ); (void) response; crMothershipDisconnect( conn ); }
void packspuSetVBoxConfiguration( const SPU *child_spu ) { RT_NOREF(child_spu); __setDefaults(); pack_spu.emit_GATHER_POST_SWAPBUFFERS = 0; pack_spu.swapbuffer_sync = 0; pack_spu.name = crStrdup("vboxhgcm://llp:7000"); pack_spu.buffer_size = 5 * 1024 * 1024; }
void binaryswapspuGatherConfiguration( Binaryswapspu *binaryswap_spu ) { CRConnection *conn; __setDefaults( binaryswap_spu ); /* Connect to the mothership and identify ourselves. */ conn = crMothershipConnect( ); if (!conn) { /* The mothership isn't running. Some SPU's can recover gracefully, some * should issue an error here. */ crSPUSetDefaultParams( binaryswap_spu, binaryswapspuOptions ); return; } crMothershipIdentifySPU( conn, binaryswap_spu->id ); crSPUGetMothershipParams( conn, (void *)binaryswap_spu, binaryswapspuOptions ); /* Get a few options from the Render SPU from which we inherit */ { char response[1000]; if (crMothershipGetSPUParam( conn, response, "resizable" )) { int resizable = 0; sscanf(response, "%d", &resizable); binaryswap_spu->resizable = resizable; } if (crMothershipGetSPUParam( conn, response, "render_to_app_window" )) { int renderToAppWindow = 0; sscanf(response, "%d", &renderToAppWindow); binaryswap_spu->renderToAppWindow = renderToAppWindow; } if (crMothershipGetSPUParam( conn, response, "default_visual" )) { binaryswap_spu->default_visual = ParseVisString(response); } else { /* This *MUST* match the default in the Render SPU */ binaryswap_spu->default_visual = CR_RGB_BIT | CR_DOUBLE_BIT | CR_DEPTH_BIT; } } binaryswap_spu->mtu = crMothershipGetMTU( conn ); crMothershipDisconnect( conn ); }
void simplequeryspuGatherConfiguration( void ) { CRConnection *conn; __setDefaults(); /* Connect to the mothership and identify ourselves. */ conn = crMothershipConnect( ); if (!conn) { /* The mothership isn't running. Some SPU's can recover gracefully, some * should issue an error here. */ crSPUSetDefaultParams( &simplequery_spu, simplequerySPUOptions ); return; } crMothershipIdentifySPU( conn, simplequery_spu.id ); crSPUGetMothershipParams( conn, &simplequery_spu, simplequerySPUOptions ); crMothershipDisconnect( conn ); }
void zpixspuGatherConfiguration(ZpixSPU * zpix_spu) { CRConnection *conn; __setDefaults(zpix_spu); /* Connect to the mothership and identify ourselves. */ conn = crMothershipConnect(); if (!conn) { /* The mothership isn't running. Some SPU's can recover gracefully, some * should issue an error here. */ crSPUSetDefaultParams(zpix_spu, zpixSPUOptions); return; } crMothershipIdentifySPU(conn, zpix_spu->id); crSPUGetMothershipParams(conn, (void *) zpix_spu, zpixSPUOptions); crMothershipDisconnect(conn); }
void arrayspuGatherConfiguration( void ) { __setDefaults(); }