From aeb41e9ae236e6545fa9cd2c5c7416cc31c682f7 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 5 Mar 2024 16:05:13 -0800 Subject: [PATCH] IoctlEmulation: Add missing nouveau ioctl The NVIF ioctl isn't publicly described in the nouveau headers and it is required for anything to work with Nouveau. Pass the ioctl command through without modification and hope that this ioctl is architecture agnostic. --- .../Tools/LinuxEmulation/LinuxSyscalls/x32/IoctlEmulation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/IoctlEmulation.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/IoctlEmulation.cpp index 5e4a6364f6..dcaad8c42e 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/IoctlEmulation.cpp +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/IoctlEmulation.cpp @@ -360,6 +360,8 @@ namespace FEX::HLE::x32 { #define _CUSTOM_META_OFFSET(name, ioctl_num, offset) // DRM #include "LinuxSyscalls/x32/Ioctl/nouveau_drm.inl" + // Let's hope NVIF is arch agnostic. + case DRM_COMMAND_BASE + DRM_NOUVEAU_NVIF: { uint64_t Result = ::ioctl(fd, cmd, args); SYSCALL_ERRNO();