Skip to content

grab some fixes from potato #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

cmake_minimum_required(VERSION 3.12.1)

option (GFX_API_DX11 "Build with DX11" ON)
option (GFX_API_DX12 "Build with DX12" ON)
option (GFX_API_VK "Build with Vulkan" ON)

Expand All @@ -31,6 +32,8 @@ else()

set_property(DIRECTORY ${CMAKE_PROJECT_DIR} PROPERTY VS_STARTUP_PROJECT ${PROJECT_NAME})

set(GFX_API_DX11 OFF)

if(GFX_API STREQUAL DX12)
set(GFX_API_DX12 ON)
set(GFX_API_VK OFF)
Expand Down Expand Up @@ -71,8 +74,10 @@ endforeach( OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES )

add_compile_options(/MP)
add_compile_definitions($<$<CONFIG:RelWithDebInfo>:USE_PIX>)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)

# override build options in ffx-fsr2-api cmake
option (FFX_FSR2_API_DX11 "Build FSR 2.0 DX11 backend" ${GFX_API_DX11})
option (FFX_FSR2_API_DX12 "Build FSR 2.0 DX12 backend" ${GFX_API_DX12})
option (FFX_FSR2_API_VK "Build FSR 2.0 Vulkan backend" ${GFX_API_VK})

Expand All @@ -88,4 +93,7 @@ endif()
if(GFX_API_DX12)
add_subdirectory(src/DX12)
endif()
if(GFX_API_DX11)
add_subdirectory(src/DX11)
endif()

4 changes: 2 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FidelityFX Super Resolution 2.1
FidelityFX Super Resolution 2.2
=================================
Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved.
Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
323 changes: 156 additions & 167 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DX11/
DX12/
VK/
19 changes: 19 additions & 0 deletions build/GenerateSolutionDX11.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@echo off
setlocal enabledelayedexpansion

echo Checking pre-requisites...

:: Check if CMake is installed
cmake --version > nul 2>&1
if %errorlevel% NEQ 0 (
echo Cannot find path to cmake. Is CMake installed? Exiting...
exit /b -1
) else (
echo CMake - Ready.
)

:: Call CMake
mkdir DX11
cd DX11
cmake -A x64 ..\.. -DGFX_API_DX11=ON -DGFX_API_DX12=OFF -DGFX_API_VK=OFF
cd ..
19 changes: 19 additions & 0 deletions build/GenerateSolutionDX11DLL.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@echo off
setlocal enabledelayedexpansion

echo Checking pre-requisites...

:: Check if CMake is installed
cmake --version > nul 2>&1
if %errorlevel% NEQ 0 (
echo Cannot find path to cmake. Is CMake installed? Exiting...
exit /b -1
) else (
echo CMake - Ready.
)

:: Call CMake
mkdir DX11
cd DX11
cmake -A x64 ..\.. -DGFX_API_DX11=ON -DGFX_API_DX12=OFF -DGFX_API_VK=OFF -DFSR2_BUILD_AS_DLL=1
cd ..
27 changes: 27 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
2023-05-12 | FidelityFX Super Resolution 2.2.1
-------
- Fixed comments in API header for incorrect cameraFar use.
- Fixed DRS issue where resource was not correctly cleared on first use.
- Fixed issue where luma instability logic could introduce output artefacts with strobing lights.
- Fixed incorrect luma resource size.

2023-02-23 | FidelityFX Super Resolution 2.2.0a
-------
- Minor updates to the documentation
- Removal of a handful of files from the prior release that are no longer part of FSR 2.2.

2023-02-16 | FidelityFX Super Resolution 2.2.0
-------
- Introduction of API debug checker.
- Changes to improve "High Velocity Ghosting" situations.
- Changes to Luminance computation with pre-exposure application.
- Small motion vectors ignored in previous depth estimation.
- Changes to depth logic to improve disocclusion detection and avoid self-disocclusions.
- Dilated reactive mask logic updated to use temporal motion vector divergence to kill locks.
- New lock luminance resource.
- Accumulation overhauled to use temporal reactivity.
- Changed how intermediate signals are stored and tonemapped.
- Luminance instability logic improved.
- Tonemapping no longer applied during RCAS to retain more dynamic range.
- Fixes for multiple user reported issues on GitHub and elsewhere. Thank you for your feedback!

2022-10-10 | FidelityFX Super Resolution 2.1.2
-------
- Fix resource precision issue.
Expand Down
Loading