1#ifdef HAVE_CONFIG_H 2#include "config.h" 3#endif 4 5#include "intel_options.h" 6 7const OptionInfoRec intel_options[] = { 8 {OPTION_ACCEL_DISABLE, "NoAccel", OPTV_BOOLEAN, {0}, 0}, 9 {OPTION_ACCEL_METHOD, "AccelMethod", OPTV_STRING, {0}, 0}, 10 {OPTION_BACKLIGHT, "Backlight", OPTV_STRING, {0}, 0}, 11 {OPTION_DRI, "DRI", OPTV_STRING, {0}, 0}, 12 {OPTION_PRESENT, "Present", OPTV_BOOLEAN, {0}, 1}, 13 {OPTION_COLOR_KEY, "ColorKey", OPTV_INTEGER, {0}, 0}, 14 {OPTION_VIDEO_KEY, "VideoKey", OPTV_INTEGER, {0}, 0}, 15 {OPTION_TILING_2D, "Tiling", OPTV_BOOLEAN, {0}, 1}, 16 {OPTION_TILING_FB, "LinearFramebuffer", OPTV_BOOLEAN, {0}, 0}, 17 {OPTION_VSYNC, "VSync", OPTV_BOOLEAN, {0}, 1}, 18 {OPTION_PAGEFLIP, "PageFlip", OPTV_BOOLEAN, {0}, 1}, 19 {OPTION_SWAPBUFFERS_WAIT, "SwapbuffersWait", OPTV_BOOLEAN, {0}, 1}, 20 {OPTION_TRIPLE_BUFFER, "TripleBuffer", OPTV_BOOLEAN, {0}, 1}, 21 {OPTION_PREFER_OVERLAY, "XvPreferOverlay", OPTV_BOOLEAN, {0}, 0}, 22 {OPTION_HOTPLUG, "HotPlug", OPTV_BOOLEAN, {0}, 1}, 23 {OPTION_REPROBE, "ReprobeOutputs", OPTV_BOOLEAN, {0}, 0}, 24 {OPTION_DELETE_DP12, "DeleteUnusedDP12Displays", OPTV_BOOLEAN, {0}, 0}, 25#ifdef INTEL_XVMC 26 {OPTION_XVMC, "XvMC", OPTV_BOOLEAN, {0}, 1}, 27#endif 28#ifdef USE_SNA 29 {OPTION_ZAPHOD, "ZaphodHeads", OPTV_STRING, {0}, 0}, 30 {OPTION_VIRTUAL, "VirtualHeads", OPTV_INTEGER, {0}, 0}, 31 {OPTION_TEAR_FREE, "TearFree", OPTV_BOOLEAN, {0}, 0}, 32 {OPTION_CRTC_PIXMAPS, "PerCrtcPixmaps", OPTV_BOOLEAN, {0}, 0}, 33#endif 34#ifdef USE_UXA 35 {OPTION_FALLBACKDEBUG, "FallbackDebug",OPTV_BOOLEAN, {0}, 0}, 36 {OPTION_DEBUG_FLUSH_BATCHES, "DebugFlushBatches", OPTV_BOOLEAN, {0}, 0}, 37 {OPTION_DEBUG_FLUSH_CACHES, "DebugFlushCaches", OPTV_BOOLEAN, {0}, 0}, 38 {OPTION_DEBUG_WAIT, "DebugWait", OPTV_BOOLEAN, {0}, 0}, 39 {OPTION_BUFFER_CACHE, "BufferCache", OPTV_BOOLEAN, {0}, 1}, 40#endif 41 {-1, NULL, OPTV_NONE, {0}, 0} 42}; 43 44OptionInfoPtr intel_options_get(ScrnInfoPtr scrn) 45{ 46 OptionInfoPtr options; 47 48 xf86CollectOptions(scrn, NULL); 49 if (!(options = malloc(sizeof(intel_options)))) 50 return NULL; 51 52 memcpy(options, intel_options, sizeof(intel_options)); 53 xf86ProcessOptions(scrn->scrnIndex, scrn->options, options); 54 55 return options; 56} 57