mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
feature: update base layout of L0 handles to match ze_handle_t layout
this layout is required by L0 DDI Handle extension Related-To: NEO-13121, NEO-13917 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
26ab3d89f0
commit
276c606329
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -14,11 +14,8 @@
|
||||
#include <level_zero/ze_api.h>
|
||||
#include <level_zero/zet_api.h>
|
||||
|
||||
struct _ze_context_handle_t {
|
||||
const uint64_t objMagic = objMagicValue;
|
||||
static const zel_handle_type_t handleType = ZEL_HANDLE_CONTEXT;
|
||||
virtual ~_ze_context_handle_t() = default;
|
||||
};
|
||||
struct _ze_context_handle_t : BaseHandleWithLoaderTranslation<ZEL_HANDLE_CONTEXT> {};
|
||||
static_assert(IsCompliantWithDdiHandlesExt<_ze_context_handle_t>);
|
||||
|
||||
namespace NEO {
|
||||
class Device;
|
||||
@@ -44,7 +41,7 @@ struct Context : _ze_context_handle_t {
|
||||
return ZE_MEMORY_TYPE_UNKNOWN;
|
||||
}
|
||||
|
||||
~Context() override = default;
|
||||
virtual ~Context() = default;
|
||||
virtual ze_result_t destroy() = 0;
|
||||
virtual ze_result_t getStatus() = 0;
|
||||
virtual DriverHandle *getDriverHandle() = 0;
|
||||
|
||||
Reference in New Issue
Block a user