Files
DroidDeck/tools/upscale/layer/CMakeLists.txt
T
The412Banner 74ece6c854 upscale: port Winlator-NeuralScale r5 (non-root parts)
Layer and bridges updated from Winlator-NeuralScale 71c140d9 (michaelisomer-cyber, GPL-3.0):
- full FSR 4.1 on the NPU (S8 graph, U8 fallback), compiled on the device per HTP arch
- ghosting fix: blank far depth when a game sends none, binding 11 bound with 62
- FSR 4.1.2 Lite S8/U8 zero-copy graphs
- Snapdragon GSR 2 on the GPU (new engine sgsr2_gpu)
- D3D11 DLSS through DXVK's interop (nvngx D3D11 entry points)

Left out on purpose: upstream's root-only performance/thermal manager, GPU clock floor and
bypass charging. Kept from DroidDeck: NPU detection by the app (DROIDDECK_UPSCALE_NPU, any HTP
generation incl. the phone's own QNN libraries) instead of upstream's SoC list, DD env names and
log tags, Intel XeSS 3 (runtime still fetched from a0ab6b0f, upstream dropped it in cb3ae04e).

FSR 4.0 on the NPU is gone upstream; the engine id becomes fsr4_1_full_npu and saved
fsr4_0_npu choices map to it. The full-FSR-4-on-Turnip guard is now opt-in
(DROIDDECK_UPSCALE_FULL_OFF_ON_TURNIP=1), since upstream's binding-11 fix targets that black frame.
Data files re-pinned to 71c140d9 (81 core + 8 NPU, sha256 checked).
2026-12-04 18:52:36 -05:00

34 lines
1.1 KiB
CMake

cmake_minimum_required(VERSION 3.22.1)
# VK_LAYER_DROIDDECK_upscale for the APK (bionic, arm64-v8a). Added from app/src/main/cpp/CMakeLists.txt.
# The glibc build for the PRoot guest is build-glibc.sh.
add_library(VkLayer_droiddeck_upscale SHARED
fsr4_layer.c
fsr4_pipeline.c
fsr4_builtin.c
fsr412_lite.c
fsr411_full_gpu.c
fsr3_gpu.c
sgsr2_gpu.c
fsr4_qnn.c
)
target_include_directories(VkLayer_droiddeck_upscale PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_definitions(VkLayer_droiddeck_upscale PRIVATE VK_USE_PLATFORM_ANDROID_KHR=1)
target_compile_options(VkLayer_droiddeck_upscale PRIVATE
-O2
-Wall
-Wextra
-Wno-unused-function
-Wno-missing-field-initializers
-fvisibility=hidden
)
# -Bsymbolic keeps the exported vkGetInstanceProcAddr/vkGetDeviceProcAddr bound to this library even when
# a libvulkan in the global scope exports the same names.
target_link_options(VkLayer_droiddeck_upscale PRIVATE -Wl,-z,max-page-size=16384 -Wl,-Bsymbolic)
target_link_libraries(VkLayer_droiddeck_upscale android log dl m)