mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 13:05:47 +00:00
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.
This commit is contained in:
1 parent
b6457b0cf7
commit
b9a535170e
1 file changed
+15
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user