GEM_MMAP removal

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2022-06-02 11:52:15 +00:00
committed by Compute-Runtime-Automation
parent a44f1b43aa
commit d3da44c9aa
12 changed files with 3 additions and 60 deletions

View File

@@ -87,14 +87,6 @@ static_assert(offsetof(GemMmapOffset, offset) == offsetof(drm_i915_gem_mmap_offs
static_assert(offsetof(GemMmapOffset, flags) == offsetof(drm_i915_gem_mmap_offset, flags));
static_assert(offsetof(GemMmapOffset, extensions) == offsetof(drm_i915_gem_mmap_offset, extensions));
static_assert(sizeof(GemMmap) == sizeof(drm_i915_gem_mmap));
static_assert(offsetof(GemMmap, handle) == offsetof(drm_i915_gem_mmap, handle));
static_assert(offsetof(GemMmap, pad) == offsetof(drm_i915_gem_mmap, pad));
static_assert(offsetof(GemMmap, offset) == offsetof(drm_i915_gem_mmap, offset));
static_assert(offsetof(GemMmap, size) == offsetof(drm_i915_gem_mmap, size));
static_assert(offsetof(GemMmap, addrPtr) == offsetof(drm_i915_gem_mmap, addr_ptr));
static_assert(offsetof(GemMmap, flags) == offsetof(drm_i915_gem_mmap, flags));
static_assert(sizeof(GemSetDomain) == sizeof(drm_i915_gem_set_domain));
static_assert(offsetof(GemSetDomain, handle) == offsetof(drm_i915_gem_set_domain, handle));
static_assert(offsetof(GemSetDomain, readDomains) == offsetof(drm_i915_gem_set_domain, read_domains));

View File

@@ -100,15 +100,6 @@ struct GemMmapOffset {
uint64_t extensions;
};
struct GemMmap {
uint32_t handle;
uint32_t pad;
uint64_t offset;
uint64_t size;
uint64_t addrPtr;
uint64_t flags;
};
struct GemSetDomain {
uint32_t handle;
uint32_t readDomains;
@@ -216,7 +207,6 @@ enum class DrmIoctl {
GemContextGetparam,
GemContextSetparam,
Query,
GemMmap,
GemMmapOffset,
GemVmCreate,
GemVmDestroy,

View File

@@ -166,8 +166,6 @@ unsigned int IoctlHelper::getIoctlRequestValueBase(DrmIoctl ioctlRequest) const
return DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM;
case DrmIoctl::Query:
return DRM_IOCTL_I915_QUERY;
case DrmIoctl::GemMmap:
return DRM_IOCTL_I915_GEM_MMAP;
case DrmIoctl::PrimeFdToHandle:
return DRM_IOCTL_PRIME_FD_TO_HANDLE;
case DrmIoctl::PrimeHandleToFd:
@@ -290,8 +288,6 @@ std::string getIoctlString(DrmIoctl ioctlRequest) {
return "DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM";
case DrmIoctl::Query:
return "DRM_IOCTL_I915_QUERY";
case DrmIoctl::GemMmap:
return "DRM_IOCTL_I915_GEM_MMAP";
case DrmIoctl::PrimeFdToHandle:
return "DRM_IOCTL_PRIME_FD_TO_HANDLE";
case DrmIoctl::PrimeHandleToFd: