From b9a535170e26877ce9650c148975f3697e8ac0ca Mon Sep 17 00:00:00 2001 From: The412Banner Date: Mon, 30 Nov 2026 02:46:33 -0500 Subject: [PATCH] fix(upscale): FSR 4 Lite stands in for FSR 4 full on Turnip The FSR 4.1.1 full path (descriptor buffers) runs on Turnip but writes a black frame (Elite, Adreno 830: 5 screenshots, no lit pixel, while the status said ok). FSR 4.1.2 Lite, on classic descriptors, works there, so the full path now declines on VK_DRIVER_ID_MESA_TURNIP and the pipeline's own fallback runs Lite, with reason full_black_on_turnip_lite_used in the status. DROIDDECK_UPSCALE_FULL_ON_TURNIP=1 runs it anyway. --- tools/upscale/layer/fsr411_full_gpu.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/upscale/layer/fsr411_full_gpu.c b/tools/upscale/layer/fsr411_full_gpu.c index cca924258a..662b12287a 100644 --- a/tools/upscale/layer/fsr411_full_gpu.c +++ b/tools/upscale/layer/fsr411_full_gpu.c @@ -383,6 +383,21 @@ WlFsr411FullGpu *wl_fsr411_full_gpu_create(const WlVkDispatch *vk, const char *f return p; } + // On Turnip (Mesa's Adreno driver) this descriptor-buffer path runs but writes a black frame (Elite, + // Adreno 830, Nov 2026); FSR 4.1.2 Lite (classic descriptors) works there. Lite stands in until this path + // gets classic descriptors too. DROIDDECK_UPSCALE_FULL_ON_TURNIP=1 runs it anyway, for testing. + { + VkPhysicalDeviceDriverProperties drv = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES }; + VkPhysicalDeviceProperties2 dp2 = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2, &drv }; + vk->GetPhysicalDeviceProperties2(vk->phys_dev, &dp2); + const char *force = dd_upscale_env("FULL_ON_TURNIP"); + if (drv.driverID == VK_DRIVER_ID_MESA_TURNIP && !(force && force[0] == '1')) { + snprintf(p->fail_reason, sizeof p->fail_reason, "full_black_on_turnip_lite_used"); + F411_LOGW("FSR 4.1.1 Full GPU off on Turnip (black output) - FSR 4.1.2 Lite stands in"); + return p; + } + } + vk->GetPhysicalDeviceMemoryProperties(vk->phys_dev, &p->memp); memset(&p->db_props, 0, sizeof p->db_props); p->db_props.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_BUFFER_PROPERTIES_EXT;