From ffe46fe53b238b3c7403cae313ff9705bf43cea5 Mon Sep 17 00:00:00 2001 From: The412Banner Date: Sat, 5 Dec 2026 01:17:31 -0500 Subject: [PATCH] upscale: D3D11 DLSS gets the game's images from DXVK extract_ngx_dx11_res() passed a zeroed VkImageCreateInfo to IDXGIVkInteropSurface::GetVulkanImageInfo; DXVK returns E_INVALIDARG unless sType is VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO (src/d3d11/ d3d11_texture.cpp, master 06ecdaa2), so no colour/output image was found and every D3D11 EvaluateFeature returned NVSDK_NGX_Result_Fail (DLSS sample with -d3d11 on the Red Magic 12 Pro, after DROIDDECK_UPSCALE_SIGFIX=1 got it past NGX's signature check). Upstream r5 has the same code. --- tools/upscale/bridges/wl_ngx_bridge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/upscale/bridges/wl_ngx_bridge.c b/tools/upscale/bridges/wl_ngx_bridge.c index 86023ccefa..a94f969e17 100644 --- a/tools/upscale/bridges/wl_ngx_bridge.c +++ b/tools/upscale/bridges/wl_ngx_bridge.c @@ -1009,6 +1009,7 @@ static void extract_ngx_dx11_res(WlFsr4ImageRef *dst, WlNgxParam *p, const char uint32_t vk_layout = 0; WlVkImageCreateInfo info; memset(&info, 0, sizeof info); + info.sType = 14u; /* VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO: DXVK returns E_INVALIDARG for anything else */ if (surf->lpVtbl->GetVulkanImageInfo(surf, &vk_img, &vk_layout, &info) == S_OK && vk_img) { dst->vk_image = vk_img; dst->vk_format = info.format;