Post AzDLWrEQE532G4XPYe by frog@idtech.space
 (DIR) More posts by frog@idtech.space
 (DIR) Post #AzDLWrEQE532G4XPYe by frog@idtech.space
       2025-10-14T22:50:38.278229Z
       
       2 likes, 2 repeats
       
       After about 3 days of work, I got DLSS to work on NVK (the open source NVIDIA driver in Mesa)! :U1f9d1-200d-1f680-frogAstronaut: DLSS is essentially just some launched Cuda kernels, so it was just a matter of implementing the VK_NVX_binary_import and VK_NVX_image_view_handle extensions. These extensions are used by DXVK and VKD3D-Proton via. DXVK-NVAPI to implement DLSS.Although, that alone was not an easy feat because the surface area of Cuda is pretty huge and parsing the cubins is difficult as there's these weirdly packed attributes spread across multiple sections an ELF where some of the metadata is ordinal-based and some of it is name-based and oh, the ELF is also inside another container of ELFs (elves?).But once you parse all that out, it's actually not *that* bad. The surface area is mostly in the parsing of the cubins, the actual dispatch code is tiny!Right now, it only supports DLSS versions that have code compiled for the GPU you are running it on. If you try and run old DLSS on a new GPU, that will not work on my implementation currently as we'd need to go from NVIDIA's IR (PTX) to some form of bytecode. That's a huuuge task.The code is not ready to land yet (lots of clean-ups needed!), but it's working now in Control!Attached is an image of Control doing DLSS with a 960x540 -> 1920x1080 upscaling.Special thanks to @mary for helping me figure out I needed to be setting some smem in the qmd, despite the kernel launch seemingly not specifying any.Also attached, is a picture of the initial froggy sample app and kernel I wrote to test the extensions before delving into the extra bits that DLSS needs to work. ;D
       
 (DIR) Post #AzDLZR1A93VjpHZ56W by a1ba@suya.place
       2025-10-14T22:53:50.057782Z
       
       0 likes, 0 repeats
       
       @frog @mary wow that's awesome!!!1
       
 (DIR) Post #AzEUdnAMphy4QEyzHk by mkljczk@pl.fediverse.pl
       2025-10-15T12:10:11.036907Z
       
       0 likes, 0 repeats
       
       @frog @mary wow this is so fucking massive