Skip to content

Commit

Permalink
Improved Streamline/DLSSG compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaldaien committed Sep 10, 2023
1 parent 6397ec4 commit 4b6a1b5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
23.9.HDR10
23.9.10.11
==========
+ Improved compatibility with Streamline/DLSSG for Starfield

[Import.FSR2Streamline]
Architecture=x64
Role=ThirdParty
When=PlugIn
Filename=C:\Program Files (x86)\Steam\steamapps\common\Starfield\FSR2Streamline.asi

>> Load the plug-in directly, delete winmm.dll and use PlugIn load-order

23.9.HDR10
==========
+ Added experimental HDR10 support

Expand Down
4 changes: 2 additions & 2 deletions include/SpecialK/DLL_VERSION.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#define SK_YEAR 23
#define SK_MONTH 9
#define SK_DATE 10
#define SK_REV_N 10
#define SK_REV 10
#define SK_REV_N 11
#define SK_REV 11

#ifndef _A2
#define _A2(a) #a
Expand Down
11 changes: 6 additions & 5 deletions src/render/dxgi/dxgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8651,7 +8651,7 @@ HookDXGI (LPVOID user)

// This has benefits, but may prove unreliable with software
// that requires NVIDIA's DXGI/Vulkan interop layer
#if 0
#if 1
SK_ComPtr <IDXGIAdapter>
pAdapter0;

Expand All @@ -8660,7 +8660,7 @@ HookDXGI (LPVOID user)
DXGI_CREATE_FACTORY_DEBUG : 0x0;

SK_ComPtr <IDXGIFactory> pFactory;
CreateDXGIFactory2 ( factory_flags,
CreateDXGIFactory2_Import ( factory_flags,
__uuidof (IDXGIFactory), (void **)&pFactory.p);
SK_ComQIPtr <IDXGIFactory7> pFactory7
(pFactory);
Expand Down Expand Up @@ -8689,7 +8689,7 @@ HookDXGI (LPVOID user)
SK_GetModuleHandle (L"OpenGL32.dll") ) ))
{
SK_D3D11_Init ();

hr =
D3D11CoreCreateDevice (
nullptr, pAdapter0,
Expand All @@ -8702,7 +8702,7 @@ HookDXGI (LPVOID user)
&pDevice.p,
&featureLevel );
}

else
{
hr =
Expand Down Expand Up @@ -9599,7 +9599,8 @@ SK::DXGI::StartBudgetThread_NoAdapter (void)
if (hDXGI)
{
static auto
CreateDXGIFactory2 =
CreateDXGIFactory2 = CreateDXGIFactory2_Import != nullptr ?
CreateDXGIFactory2_Import :
(CreateDXGIFactory2_pfn) SK_GetProcAddress ( hDXGI,
"CreateDXGIFactory2" );

Expand Down

0 comments on commit 4b6a1b5

Please sign in to comment.