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.
This commit is contained in:
The412Banner committed 2026-12-05 01:17:31 -05:00
1 parent 4626cb309d
commit ffe46fe53b
1 file changed
+1
+1
View File
@@ -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;