From 0cd6371c1b3f1273b4c7cd79da673f3f6e67f28d Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Wed, 2 Oct 2024 14:27:24 -0700 Subject: [PATCH] IoctlEmulation: Add panthor_drm --- .../LinuxEmulation/LinuxSyscalls/x32/Ioctl/drm.h | 2 ++ .../LinuxSyscalls/x32/Ioctl/panthor_drm.inl | 13 +++++++++++++ .../LinuxSyscalls/x32/IoctlEmulation.cpp | 1 + 3 files changed, 16 insertions(+) create mode 100644 Source/Tools/LinuxEmulation/LinuxSyscalls/x32/Ioctl/panthor_drm.inl diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/Ioctl/drm.h b/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/Ioctl/drm.h index 521179b6f5..478b27fdd0 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/Ioctl/drm.h +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/Ioctl/drm.h @@ -21,6 +21,7 @@ extern "C" { #include "fex-drm/radeon_drm.h" #include "fex-drm/vc4_drm.h" #include "fex-drm/v3d_drm.h" +#include "fex-drm/panthor_drm.h" #include "fex-drm/pvr_drm.h" #include "fex-drm/virtgpu_drm.h" #include "fex-drm/xe_drm.h" @@ -1278,6 +1279,7 @@ namespace V3D { #include "LinuxSyscalls/x32/Ioctl/radeon_drm.inl" #include "LinuxSyscalls/x32/Ioctl/vc4_drm.inl" #include "LinuxSyscalls/x32/Ioctl/v3d_drm.inl" +#include "LinuxSyscalls/x32/Ioctl/panthor_drm.inl" #include "LinuxSyscalls/x32/Ioctl/pvr_drm.inl" #include "LinuxSyscalls/x32/Ioctl/xe_drm.inl" } // namespace FEX::HLE::x32 diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/Ioctl/panthor_drm.inl b/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/Ioctl/panthor_drm.inl new file mode 100644 index 0000000000..8953ffdf09 --- /dev/null +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/Ioctl/panthor_drm.inl @@ -0,0 +1,13 @@ +_BASIC_META(DRM_IOCTL_PANTHOR_DEV_QUERY) +_BASIC_META(DRM_IOCTL_PANTHOR_VM_CREATE) +_BASIC_META(DRM_IOCTL_PANTHOR_VM_DESTROY) +_BASIC_META(DRM_IOCTL_PANTHOR_VM_BIND) +_BASIC_META(DRM_IOCTL_PANTHOR_VM_GET_STATE) +_BASIC_META(DRM_IOCTL_PANTHOR_BO_CREATE) +_BASIC_META(DRM_IOCTL_PANTHOR_BO_MMAP_OFFSET) +_BASIC_META(DRM_IOCTL_PANTHOR_GROUP_CREATE) +_BASIC_META(DRM_IOCTL_PANTHOR_GROUP_DESTROY) +_BASIC_META(DRM_IOCTL_PANTHOR_GROUP_SUBMIT) +_BASIC_META(DRM_IOCTL_PANTHOR_GROUP_GET_STATE) +_BASIC_META(DRM_IOCTL_PANTHOR_TILER_HEAP_CREATE) +_BASIC_META(DRM_IOCTL_PANTHOR_TILER_HEAP_DESTROY) diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/IoctlEmulation.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/IoctlEmulation.cpp index 7c89605f00..d29d8c1064 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/IoctlEmulation.cpp +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/x32/IoctlEmulation.cpp @@ -730,6 +730,7 @@ std::array Handlers = []() consteval { #include "LinuxSyscalls/x32/Ioctl/vc4_drm.inl" #include "LinuxSyscalls/x32/Ioctl/v3d_drm.inl" #include "LinuxSyscalls/x32/Ioctl/virtio_drm.inl" +#include "LinuxSyscalls/x32/Ioctl/panthor_drm.inl" #include "LinuxSyscalls/x32/Ioctl/pvr_drm.inl" #include "LinuxSyscalls/x32/Ioctl/xe_drm.inl"