; S3 Graphics Windows Win7 Display INF file 
;
; Installation INF for the S3 Graphics Co., Ltd. WDDM x64 display driver
;
; Copyright (c) VIA Technologies, Inc.

[Version]
Signature="$Windows NT$"
Provider=%MSFT%
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
DriverVer=07/27/2011, 8.14.14.0177
;24.15.01b
Catalogfile=delta.cat

[DestinationDirs]
DefaultDestDir      = 11
S3G700.Miniport     = 12   ; drivers
S3G700.Display      = 11   ; system32
S3G700.DispWow      = 10, SysWow64 
S3G700.OpenGL       = 11   ; system32
S3G700.OpenGLWOW    = 10, SysWow64 
S3G700.Clone        = 11   ; system32
Uninstaller.Files     = 11   ; system32

[ControlFlags]
ExcludeFromSelect = *

;
; Driver information
;

[Manufacturer]
%S3GRAPHICS%   = S3.Mfg,  NTamd64

;
; This section should be modified to reflect the chip strings the
; user will see in the Displays applet when the new driver is being
; installed from the driver diskette.
;

[S3.Mfg.NTamd64]
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_71221106
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_1624103C
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_04101849
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_50311509
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_60501509
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_20191297
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_20181297
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_0CFD105B
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_360617AA
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_31261019
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_D0001458
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_AA281106
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_120A1565
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_50001458
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_AA151106
%VIAChrome9IGP_VIA%          = S3G700, PCI\VEN_1106&DEV_7122&SUBSYS_01391B0A


;
; General installation section
;

[S3G700]
FeatureScore=EC
CopyFiles = S3G700.Miniport, S3G700.Display, S3G700.DispWow, S3G700.OpenGL, S3G700.OpenGLWOW, S3G700.Clone, Uninstaller.Files
AddReg = S3G700_SoftwareDeviceSettings, CoInstaller.Regs, Uninstaller.Regs
DelReg = S3G700_UserPreferences
RegisterDlls = S3G700_RegisterDlls

;
; File sections
;

[S3G700.Miniport]
ucb_64a.sys
VTGKModeDX64A.sys     ; miniport driver

[S3G700.Display]
VTGUModeDX64A.dll,,,0x00004000             ; COPYFLG_IN_USE_TRY_RENAME
VTROM.bin                                  ; VBIOS image file for BSOD protection when SysBios didn't copy VBIOS
S3DAPI64.dll,,,0x00004000             ; COPYFLG_IN_USE_TRY_RENAME

[S3G700.DispWow]
VTGUModeDXWOW64A.dll,,,0x00004000	; COPYFLG_IN_USE_TRY_RENAME

[S3G700.OpenGL]
VTGOGL64A.DLL,,,0x00004000       ; OpenGL driver

[S3G700.OpenGLWOW]
VTGOGLWOW64A.DLL,,,0x00004000    ; OpenGL WOW64 driver

[S3G700.Clone]
S3Clone64.dll,,,0x00004000	; COPYFLG_IN_USE_TRY_RENAME

[S3G700_RegisterDlls]
11,,S3Clone64.dll,1

;
; Service Installation
;

[S3G700.Services]
AddService = S3gIGPA, 0x00000002, S3G700_Service_Inst
 
[S3G700_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Video
ServiceBinary  = %12%\VTGKModeDX64A.sys

[S3G700_SoftwareDeviceSettings]
HKR,, InstalledDisplayDrivers,      %REG_MULTI_SZ%, VTGUModeDX64A,VTGUModeDXWOW64A
HKR,, VgaCompatible,                %REG_DWORD%,    0
HKR,, SupportIcd,                   %REG_DWORD%,    1
HKR,, SupportSAMM,                  %REG_DWORD%,    1
HKR,, DefaultSettings.XResolution,  %REG_DWORD%,    800
HKR,, DefaultSettings.YResolution,  %REG_DWORD%,    600
HKR,, DefaultSettings.BitsPerPel,   %REG_DWORD%,    32
HKR,, DefaultSettings.VRefresh,     %REG_DWORD%,    60
HKR,, UseAGPDMA,                    %REG_DWORD%,    1
HKR,, bSupportCRTCalibration,       %REG_DWORD%,    1
HKR,, RotationDegree,               %REG_DWORD%,    0
HKR,, UserModeDriverName,           %REG_MULTI_SZ%, VTGUModeDX64A.dll
HKR,, UserModeDriverNameWow,        %REG_MULTI_SZ%, VTGUModeDXWOW64A.dll
HKR,, OpenGLDriverName,             %REG_SZ%,       VTGOGL64A.dll
HKR,, OpenGLVersion,                %REG_DWORD%,    2
HKR,, OpenGLFlags,                  %REG_DWORD%,    1
HKR,, OpenGLDriverNameWow,          %REG_SZ%,       VTGOGLWOW64A.dll
HKR,, OpenGLVersionWow,             %REG_DWORD%,    2
HKR,, OpenGLFlagsWow,               %REG_DWORD%,    1
HKR,, RemovableSources,             %REG_DWORD%,    0
HKR,, UserModeDriverGUID,     	    %REG_SZ%, {A661981C-9742-4cf0-8298-8530AA65567D}
HKLM,"SOFTWARE\Microsoft\TMM",UseIViewHelper,%REG_DWORD%, 1
HKLM,"SYSTEM\CurrentControlSet\Control\GraphicsDrivers",UseXPModel,%REG_DWORD%,0
HKLM,"SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Scheduler",SchedulingMethod,%REG_DWORD%,0
HKLM,"SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Scheduler",EnablePreemption,%REG_DWORD%,1

;Add on registry keys for Haycyon chips
HKR,, S3GDW_DXVAType,               %REG_DWORD%,    0
HKR,, S3GDW_FrontEndBlend,          %REG_DWORD%,    1

HKR,, HalcyonFFPSCacheEnable,       	%REG_DWORD%,    1
HKR,, HalcyonPPSCacheEnable,        	%REG_DWORD%,    1
HKR,, HalcyonEnableTnL,             	%REG_DWORD%,    1
HKR,, HalcyonEnableVS,              	%REG_DWORD%,    1
HKR,, HalcyonEnableSWCulling,       	%REG_DWORD%,    0
HKR,, HalcyonCoarseZEnable,         	%REG_DWORD%,    1
HKR,, HalcyonDirectAccessFB,        	%REG_DWORD%,    1
HKR,, HalcyonPSOptInstReorder,      	%REG_DWORD%,    1
HKR,, HalcyonPSOptRemoveRedundants, 	%REG_DWORD%,    1
HKR,, HalcyonPSOptRemoveUnnecessaryMOV, %REG_DWORD%,    1
HKR,, HalcyonPSOptCoissue,              %REG_DWORD%,    1
HKR,, HalcyonPSOptMerge,                %REG_DWORD%,    1
HKR,, HalcyonPSOptSecondDest,           %REG_DWORD%,    1
HKR,, HalcyonPSOptRemap,                %REG_DWORD%,    1
HKR,, HalcyonPSOptCoissueSimMov,        %REG_DWORD%,    1
HKR,, HalcyonSPSENABLE,                 %REG_DWORD%,    0

HKR,, HalcyonVSOptInstReorder,          %REG_DWORD%,    1
HKR,, HalcyonVSOptRemoveRedundants,     %REG_DWORD%,    1
HKR,, HalcyonVSOptRemoveUnnecessaryMOV, %REG_DWORD%,    1

HKR,, HalcyonTexReadThreshold,          %REG_DWORD%,    0x00
HKR,, HalcyonZReadFIFOThreshold,        %REG_DWORD%,    0x04
HKR,, HalcyonZWriteFIFOThreshold,       %REG_DWORD%,    0x0F
HKR,, HalcyonVBReadThreshold,           %REG_DWORD%,    0x04
HKR,, HalcyonTexAddrReadFIFOThreshold,  %REG_DWORD%,    0x00
HKR,, HalcyonColorReadFIFOThreshold,    %REG_DWORD%,    0x00
HKR,, HalcyonRCDThreshold,              %REG_DWORD%,    0x05
HKR,, HalcyonCoarseZReadThreshold,      %REG_DWORD%,    0x04
HKR,, HalcyonDMAReadWritePriMSK,        %REG_DWORD%,    0x00
HKR,, HalcyonZWritePriMSK,              %REG_DWORD%,    0x2FB
HKR,, HalcyonZReadPriMSK,               %REG_DWORD%,    0x2C9
HKR,, HalcyonColorWritePriMSK,          %REG_DWORD%,    0x2DB
HKR,, HalcyonColorReadPriMSK,           %REG_DWORD%,    0x2CB
HKR,, HalcyonStencilBufReadPriMSK,      %REG_DWORD%,    0x249
HKR,, HalcyonStencilBufWritePriMSK,     %REG_DWORD%,    0x2FF
HKR,, HalcyonCZReadWritePriMSK,         %REG_DWORD%,    0x09
HKR,, HalcyonTexReadPriMSK,             %REG_DWORD%,    0x00
HKR,, HalcyonVBReadePriMSK,             %REG_DWORD%,    0x08
HKR,, HalcyonCoarseZWriteThreshold,     %REG_DWORD%,    0x04
HKR,, HalcyonCZWritePriMSK,             %REG_DWORD%,    0x49
HKR,, HalcyonZReadFIFOThreshold,        %REG_DWORD%,    0x0F
HKR,, HalcyonColorReadFIFOThreshold,    %REG_DWORD%,    0x00
HKR,, HalcyonRCDThreshold,              %REG_DWORD%,    0x00

HKR,, HalcyonCModelType,            	%REG_DWORD%,    0
HKR,, HalcyonDump2DCommand,         	%REG_DWORD%,    0
HKR,, HalcyonDumpEnable,            	%REG_DWORD%,    0
HKR,, HalcyonDumpEnd,               	%REG_DWORD%,    0
HKR,, HalcyonDumpMode,              	%REG_DWORD%,    0
HKR,, HalcyonDumpRenderBitmap,      	%REG_DWORD%,    0
HKR,, HalcyonDumpStart,             	%REG_DWORD%,    0
HKR,, HalcyonDumpStride,            	%REG_DWORD%,    0
HKR,, HalcyonEnableFastZClear,      	%REG_DWORD%,    0
HKR,, HalcyonEnableHWClip,          	%REG_DWORD%,    1
HKR,, HalcyonEnableHWVB,            	%REG_DWORD%,    1
HKR,, HalcyonEnableHWIB,            	%REG_DWORD%,    1
HKR,, HalcyonFastZ16IndexLen,       	%REG_DWORD%,    0
HKR,, HalcyonFastZ24IndexLen,       	%REG_DWORD%,    0
HKR,, HalcyonFastZ32IndexLen,       	%REG_DWORD%,    0
HKR,, HalcyonFBDumpEnable,          	%REG_DWORD%,    0
HKR,, HalcyonFFPSDumpEnable,        	%REG_DWORD%,    0
HKR,, HalcyonForcePCI,              	%REG_DWORD%,    0
HKR,, HalcyonFullUpdate,            	%REG_DWORD%,    0
HKR,, HalcyonMSPSDumpEnable,        	%REG_DWORD%,    0
HKR,, HalcyonMSVSDumpEnable,        	%REG_DWORD%,    0
HKR,, HalcyonPSDumpStyle,           	%REG_DWORD%,    0
HKR,, HalcyonSeparateStencilEnable, 	%REG_DWORD%,    0
HKR,, HalcyonSW2D,                  	%REG_DWORD%,    0
HKR,, HalcyonTiledDisplayEnable,    	%REG_DWORD%,    0
HKR,, HalcyonTiledRTEnable,         	%REG_DWORD%,    0
HKR,, HalcyonTiledZWEnable,         	%REG_DWORD%,    0
HKR,, HalcyonTiledTexEnable,        	%REG_DWORD%,    0
HKR,, S3GDW_AgpTexturing,               %REG_DWORD%,    0
HKR,, HalcyonPPSDumpEnable,         	%REG_DWORD%,    0
HKR,, DISABLE_MEDIAPLAYER_FULLSCR_CTRL, %REG_DWORD%,    1
HKR,, S3GDW_DisableBandwidthChecking,   %REG_DWORD%,    1
HKR,, DeviceEnableDoCenter,             %REG_DWORD%,    0x18373
HKR,, DeviceEnableDoShrink,             %REG_DWORD%,    0x18373
HKR,, ResetOSMode,                      %REG_DWORD%,    1
HKR,, ResetOSModeWantedDevice,          %REG_DWORD%,    0x37F
HKR,, DisableEnhancedGlitchFreeWMV720P, %REG_DWORD%,    0
HKR,, PWM_control_value_restore_support,	%REG_DWORD%,    1

HKR,, EnableScalaringOnDisplayPage,     %REG_DWORD%,    0x2
HKR,, ASPECT_RATIO_LOCK_ENABLE,         %REG_DWORD%,    0
HKR,, ChangeVPBltRTXRGB8888ToYUY2,      %REG_DWORD%,    1
HKR,, Enable3DExclusiveMode,            %REG_DWORD%,    1
HKR,, PDVDAeroOff,                      %REG_DWORD%,    1
HKR,, ACPI_SET_ATTACH_STATUS,           %REG_DWORD%,    1
HKR,, S3GDW_ACPI_DGS_Method_SUPPORT,    %REG_DWORD%,    1
HKR,, S3GNeedForceDetection,            %REG_DWORD%,    1

;;;;;;;;;feature

HKR,, 6024642B4538CloneReportModeLogic,                        %REG_DWORD%,    4
HKR,, 6024642B7559CloneReportModeLogic,                        %REG_DWORD%,    4

HKR,, 602463B5328ECloneReportModeLogic,                        %REG_DWORD%,    4
HKR,, 602463B5328FCloneReportModeLogic,                        %REG_DWORD%,    4

HKR,, 6024696B1C59DeviceEnableDoMore,                          %REG_DWORD%,    3
HKR,, 602461791CA6DeviceEnableDoMore,                          %REG_DWORD%,    3
HKR,, 60246024BB2EDeviceEnableDoMore,                          %REG_DWORD%,    3
HKR,, 60246024BB13DisableBrightnessControlInterface,           %REG_DWORD%,    1


; user-selected preferences reset to default settings upon installing a new driver
[S3G700_UserPreferences]
HKR,, UseDDCInfo
HKR,, PanelCenterExpandMode
HKR,, SingleController
HKR,, NtscTvPositionX
HKR,, NtscTvPositionY
HKR,, Pal6TvPositionX
HKR,, Pal6TvPositionY
HKR,, Pal8TvPositionX
HKR,, Pal8TvPositionY
HKR,, DisplaysActivePreference
HKR,, TvStandardPreference
HKR,, DdcMaxRefresh
HKR,, GammaFor16BppModes
HKR,, GammaFor32BppModes
HKR,, GammaIGA2For16BppModes
HKR,, GammaIGA2For32BppModes
HKR,, GammaSupportEnabled
HKR,, SupportRotation_90
HKR,, SupportRotation_180
HKR,, SupportRotation_270
HKR,, RotationDegree
HKR,, SupportSAMM

[CoInstaller.Regs]
HKR,, CoInstallers32,                  %REG_MULTI_SZ%,"S3iset64.dll, slCoInstaller"

[S3G700.GeneralConfigData]
MaximumDeviceMemoryConfiguration=256
MaximumNumberOfDevices=2

[SourceDisksNames]
1 = %DiskId%,,,""

[SourceDisksFiles]
ucb_64a.sys          = 1
VTGKModeDX64A.sys      = 1
VTGUModeDX64A.dll      = 1
VTGUModeDXWOW64A.dll   = 1
VTGOGL64A.dll          = 1
VTGOGLWOW64A.dll       = 1
S3Clone64.dll         = 1
VTROM.bin           = 1
S3DAPI64.dll           = 1

;; Uninstaller
s3minset.exe = 1
s3iset64.dll = 1


[Uninstaller.Files]
s3minset.exe,,,0x00004000
s3iset64.dll,,,0x00004000

[Uninstaller.Regs]
HKLM,%CURVER%\Uninstall\%ProductShortName%,"DisplayName",,"%ProductLongName%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"InstallLocation",,""
HKLM,%CURVER%\Uninstall\%ProductShortName%,"Publisher",,"%S3GRAPHICS%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"VersionMajor",,"%DriverVer%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"VersionMinor",,"0.0.0.0"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"DisplayVersion",,"%DriverVer%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"Comments",,"Thank you for using S3's Products"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"DisplayIcon",,"%11%\s3minset.exe"
HKLM,%CURVER%\Uninstall\%ProductShortName%,UninstallString,,"%11%\s3minset.exe -uninf -u '%ProductShortName%' -ver '%DriverVer%'"



[Strings]
;
; Non-Localizable Strings
;
REG_MULTI_SZ   = 0x00010000
REG_DWORD      = 0x00010001
REG_SZ         = 0x00000000
REG_BINARY     = 0x00000001

;
; Localizable Strings
;

MSFT = "VIA"
VIAChrome9IGP_VIA = "VIA Chrome9 HD IGP"
DiskId = "DeltaChromeIGP Display Driver"

S3GRAPHICS  = "S3 Graphics Co., Ltd."

ProductLongName = "VIA Chrome9 HD IGP Display Driver"
ProductShortName = "Chrome9HD"
DriverVer = "07/27/2011, 8.14.14.0177"

  ;; Strings specific to OpenGL ICD
WinNTDir    = "Windows NT"
S3ICDKEY    = "s3gIGPglA"

CtrlFld     = "Controls Folder"
CURVER      = "Software\Microsoft\Windows\CurrentVersion"
