; vtgLHx64.inf
;
; Longhorn installation INF for the S3 Graphics Co., Ltd. WDDM x64 display driver
; for the 86c700-series of products.
;
; Copyright (c) 2006 VIA Technologies, Inc.
;

[Version]
Signature="$Windows NT$"
Provider=%MSFT%
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
DriverVer=04/29/2008, 7.14.14.0050
;21.05.01i
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   ;
DefaultUSys.Copy    = 11
DefaultUHlp.Copy    = 18

[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]
%S3GDeltaChromeIGP%          = S3G700, PCI\VEN_1106&DEV_3230

;
; General installation section
;

[S3G700]
FeatureScore=F6
CopyFiles=S3G700.Miniport, S3G700.Display, S3G700.DispWow, S3G700.OpenGL, S3G700.OpenGLWOW, S3G700.Clone,DefaultUHlp.Copy, DefaultUSys.Copy
AddReg = S3G700_SoftwareDeviceSettings,DefaultU.AddReg, CoInstaller.AddReg
DelReg = S3G700_UserPreferences
RegisterDlls = S3G700_RegisterDlls

;
; File sections
;

[S3G700.Miniport]
VTGKModeDX64.sys     ; miniport driver

[S3G700.Display]
VTGUModeDX64.dll,,,0x00004000             ; COPYFLG_IN_USE_TRY_RENAME
VTROM.bin,,,0x00004000 	; VBIOS image file for new CBIOS flow in old VBIOS machine

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

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

[S3G700.OpenGLWOW]
VTGOGLWOW64.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 = S3GIGP, 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%\VTGKModeDX64.sys

[S3G700_SoftwareDeviceSettings]
HKR,, InstalledDisplayDrivers,      %REG_MULTI_SZ%, VTGUModeDX64,VTGUModeDXWOW64
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,, SupportRotation_90,           %REG_DWORD%,    0
HKR,, SupportRotation_180,          %REG_DWORD%,    0
HKR,, SupportRotation_270,          %REG_DWORD%,    0
HKR,, RotationDegree,               %REG_DWORD%,    0
HKR,, UserModeDriverName,           %REG_MULTI_SZ%, VTGUModeDX64.dll
HKR,, UserModeDriverNameWow,        %REG_MULTI_SZ%, VTGUModeDXWOW64.dll
HKR,, OpenGLDriverName,             %REG_SZ%,       VTGOGL64.dll
HKR,, OpenGLVersion,                %REG_DWORD%,    2
HKR,, OpenGLFlags,                  %REG_DWORD%,    1
HKR,, OpenGLDriverNameWow,          %REG_SZ%,       VTGOGLWOW64.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,"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%,    1
HKR,, HalcyonCoarseZEnable,         	%REG_DWORD%,    1
HKR,, HalcyonDirectAccessFB,        	%REG_DWORD%,    0
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,, HalcyonTexReadThreshold,          %REG_DWORD%,    0x00
HKR,, HalcyonZReadFIFOThreshold,        %REG_DWORD%,    0x04
HKR,, HalcyonZWriteFIFOThreshold,       %REG_DWORD%,    0x0F
HKR,, HalcyonVBReadThreshold,           %REG_DWORD%,    0x00
HKR,, HalcyonTexAddrReadFIFOThreshold,  %REG_DWORD%,    0x00
HKR,, HalcyonColorReadFIFOThreshold,    %REG_DWORD%,    0x00
HKR,, HalcyonRCDThreshold,              %REG_DWORD%,    0x00
HKR,, HalcyonCoarseZReadThreshold,      %REG_DWORD%,    0x04
HKR,, HalcyonDMAReadWritePriMSK,        %REG_DWORD%,    0x00
HKR,, HalcyonZWritePriMSK,              %REG_DWORD%,    0xFB
HKR,, HalcyonZReadPriMSK,               %REG_DWORD%,    0x49
HKR,, HalcyonColorWritePriMSK,          %REG_DWORD%,    0xDB
HKR,, HalcyonColorReadPriMSK,           %REG_DWORD%,    0xCB
HKR,, HalcyonStencilBufReadPriMSK,      %REG_DWORD%,    0x4B
HKR,, HalcyonStencilBufWritePriMSK,     %REG_DWORD%,    0xFF
HKR,, HalcyonCZReadWritePriMSK,         %REG_DWORD%,    0x09
HKR,, HalcyonTexReadPriMSK,             %REG_DWORD%,    0x01
HKR,, HalcyonVBReadePriMSK,             %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%,    0
HKR,, HalcyonEnableHWVB,            	%REG_DWORD%,    0
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,, S3G_EnableSWFilmDetect,           %REG_DWORD%,    0
HKR,, S3G_ContextBasedFilmDetect,       %REG_DWORD%,    0
HKR,, EnableStagingSegment,             %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

[S3G700.GeneralConfigData]
MaximumDeviceMemoryConfiguration=256
MaximumNumberOfDevices=2

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

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

[SourceDisksFiles]
VTGKModeDX64.sys      = 1
VTGUModeDX64.dll      = 1
VTGUModeDXWOW64.dll   = 1
VTGOGL64.dll          = 1
VTGOGLWOW64.dll       = 1
S3Clone64.dll         = 1
VTROM.bin             = 1

; == S3 Display Utility
S3Disply.cfg = 1
S3Displ2.cfg = 1
S3Displ3.cfg = 1
S3Disply.dll = 1
S3DspChs.hlp = 1
S3DspCht.hlp = 1
S3DspJpn.hlp = 1
S3DspKor.hlp = 1
S3DspWst.hlp = 1
S3DspTha.hlp = 1
S3DspWs2.hlp = 1

; == S3Overlay utility
S3ovrlay.dll = 1
S3ovrlay.cfg = 1
S3Ovrly2.cfg = 1
S3ovlwst.hlp = 1
S3ovlchs.hlp = 1
S3ovlcht.hlp = 1
S3ovljpn.hlp = 1
S3ovlkor.hlp = 1
S3OvlTha.hlp = 1
S3OvlWs2.hlp = 1

; == S3Info2 utility
S3Info2.dll  = 1
S3Info2.cfg  = 1
S3in2wst.hlp = 1
S3in2chs.hlp = 1
S3in2cht.hlp = 1
S3in2jpn.hlp = 1
S3in2kor.hlp = 1
S3In2Tha.hlp = 1
S3in2ws2.hlp = 1


; == S3Tray Plus utility
s3trayp.exe  = 1
S3Trayp2.cfg  = 1
S3Trayp.cfg  = 1
S3TPCHS.HLP  = 1
S3TPCHT.HLP  = 1
S3TPJPN.HLP  = 1
S3TPKOR.HLP  = 1
S3TPTHA.HLP  = 1
S3TPWS2.HLP  = 1
S3TPWST.HLP  = 1

; == UnInstall
S3minset.exe = 1

; == CoInstall
S3iset64.dll = 1

;
; Common AddReg sections
;

[DefaultU.AddReg]
;; ------------------------------------------------------------------
;;		  		S3Display
;; ------------------------------------------------------------------
HKCR,CLSID\%S3DISPCLS%,,,"S3Display Property Sheet"
HKCR,CLSID\%S3DISPCLS%\InProcServer32,,,S3Disply.dll
HKCR,CLSID\%S3DISPCLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Display,"",,%S3DISPCLS%
HKLM,%S3DSPKEY%,Installed,,1
HKLM,%S3DSPKEY%,Filename,,S3Disply.dll
HKLM,%S3DSPKEY%,UtilityName,,%S3DISPNAME%
HKLM,%S3DSPKEY%,ConfigNum,,0
HKLM,%S3DSPKEY%,URL,,http://www.s3graphics.com
HKLM,%S3DSPKEY%,UIStyle,,Chrome2
HKLM,%S3DSPKEY%,TvLargeFont,,1

;; ------------------------------------------------------------------
;;		  		S3Overlay
;; ------------------------------------------------------------------
HKCR,CLSID\%OVERLAYCLS%,,,"S3Overlay Property Sheet"
HKCR,CLSID\%OVERLAYCLS%\InProcServer32,,,S3Ovrlay.dll
HKCR,CLSID\%OVERLAYCLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Overlay,"",,%OVERLAYCLS%
HKLM,%OVERLAYKEY%,Filename,,S3Ovrlay.dll
HKLM,%OVERLAYKEY%,URL,,http://www.s3graphics.com
HKLM,%OVERLAYKEY%,UIStyle,,Chrome2


;; ------------------------------------------------------------------
;;		  		S3Info Plus
;; ------------------------------------------------------------------
HKCR,CLSID\%INFO2CLS%,,,"S3Info2 Property Sheet"
HKCR,CLSID\%INFO2CLS%\InProcServer32,,,S3Info2.dll
HKCR,CLSID\%INFO2CLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Info2,"",,%INFO2CLS%
HKLM,%INFO2KEY%,Filename,,S3Info2.dll
HKLM,%INFO2KEY%,URL,,http://www.s3graphics.com
HKLM,%INFO2KEY%,UMAEnabled,,OFF
HKLM,%INFO2KEY%,UIStyle,,Chrome2


;; ------------------------------------------------------------------
;;		  		S3Tray Plus
;; ------------------------------------------------------------------
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,S3Trayp,,"S3trayp.exe -chkautorun"

;; ------------------------------------------------------------------
;;		  		Add/Remove Program Item
;; ------------------------------------------------------------------
HKLM,%CURVER%\Uninstall\%ProductShortName%,"DisplayName",,"%ProductLongName% 7.14.14.0050"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"DisplayIcon",,"%11%\s3minset.exe"
HKLM,%CURVER%\Uninstall\%ProductShortName%,UninstallString,,"%11%\s3minset.exe -uninf -u '%ProductShortName%' -ver '%DriverVer%'"


[DefaultUSys.Copy]
S3Disply.cfg
S3Displ2.cfg
S3Displ3.cfg
S3Disply.dll,,,0x00004000	; S3display utility
S3ovrlay.dll,,,0x00004000	; S3overlay utility
S3ovrlay.cfg
S3Ovrly2.cfg
S3Info2.dll,,,0x00004000	; S3info utility
S3Info2.cfg
S3minset.exe
S3iset64.dll,,,0x00004000	; S3 CoInstaller
S3Trayp2.cfg
S3Trayp.cfg
s3trayp.exe

[DefaultUHlp.Copy]
S3DspChs.hlp
S3DspCht.hlp
S3DspJpn.hlp
S3DspKor.hlp
S3DspWst.hlp
S3DspTha.hlp
S3DspWs2.hlp
S3in2wst.hlp
S3in2chs.hlp
S3in2cht.hlp
S3in2jpn.hlp
S3in2kor.hlp
S3In2Tha.hlp
S3in2ws2.hlp
S3TPCHS.HLP
S3TPCHT.HLP
S3TPJPN.HLP
S3TPKOR.HLP
S3TPTHA.HLP
S3TPWS2.HLP
S3TPWST.HLP
S3ovlwst.hlp
S3ovlchs.hlp
S3ovlcht.hlp
S3ovljpn.hlp
S3ovlkor.hlp
S3OvlTha.hlp
S3OvlWs2.hlp


[Strings]
ProductLongName = "VIA Chrome9 HC IGP Family Windows Vista x64 Display"
ProductShortName = "Chrome9HC"
;
; Non-Localizable Strings
;
REG_MULTI_SZ   = 0x00010000
REG_DWORD      = 0x00010001
REG_SZ         = 0x00000000

;
; Localizable Strings
;

MSFT = "VIA"
S3GRAPHICS  = "S3 Graphics Co. Ltd."
S3GDeltaChromeIGP = "VIA Chrome9 HC IGP Family WDDM"
DiskId = "DeltaChromeIGP Display Driver"

DriverVer = "04/29/2008, 7.14.14.0050"

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

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

; For S3Display
S3DISPCLS  = "{300b0160-6129-11d7-8dc7-00d0b72c72f7}"
S3DISPNAME = "S3Display"
S3DSPKEY   = "SOFTWARE\S3\S3Display"

; For S3Overlay
S3OvlNAME  = "S3Overlay"
OVERLAYCLS   = "{6c146c80-66e8-11d3-88af-00600837776e}"
OVERLAYKEY   = "SOFTWARE\S3\S3Overlay"

; For S3Info2
INFO2CLS   = "{300b0162-6129-11d7-8dc7-00d0b72c72f7}"
INFO2KEY   = "SOFTWARE\S3\S3Info2"

S3TraypKEY = "SOFTWARE\S3\S3TrayPlus"