mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Create a wrapper for drm_i915_gem_context_create_ext
Related-To: NEO-6852 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bd5dc1524c
commit
51d1752a68
@@ -171,8 +171,8 @@ int DrmMockCustom::ioctl(unsigned long request, void *arg) {
|
||||
} break;
|
||||
|
||||
case DRM_IOCTL_I915_GEM_CONTEXT_CREATE_EXT: {
|
||||
auto contextCreateParam = reinterpret_cast<drm_i915_gem_context_create_ext *>(arg);
|
||||
contextCreateParam->ctx_id = ++ioctl_cnt.contextCreate;
|
||||
auto contextCreateParam = static_cast<NEO::GemContextCreateExt *>(arg);
|
||||
contextCreateParam->contextId = ++ioctl_cnt.contextCreate;
|
||||
} break;
|
||||
case DRM_IOCTL_I915_GEM_CONTEXT_DESTROY: {
|
||||
ioctl_cnt.contextDestroy++;
|
||||
|
||||
Reference in New Issue
Block a user