mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +08:00
refactor: prevent copy/move on KernelDesc and ZebinExecEnv
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9aad7750be
commit
a65d4da88b
@@ -8,6 +8,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/device_binary_format/yaml/yaml_parser.h"
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/utilities/const_stringref.h"
|
||||
|
||||
#include <array>
|
||||
@@ -398,7 +399,7 @@ struct ExecutionEnvExt;
|
||||
ExecutionEnvExt *allocateExecEnvExt();
|
||||
void freeExecEnvExt(ExecutionEnvExt *);
|
||||
|
||||
struct ExecutionEnvBaseT final {
|
||||
struct ExecutionEnvBaseT final : NEO::NonCopyableOrMovableClass {
|
||||
ExecutionEnvBaseT() {
|
||||
execEnvExt = allocateExecEnvExt();
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "shared/source/command_stream/thread_arbitration_policy.h"
|
||||
#include "shared/source/device_binary_format/device_binary_formats.h"
|
||||
#include "shared/source/helpers/definitions/command_encoder_args.h"
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/kernel/debug_data.h"
|
||||
#include "shared/source/kernel/grf_config.h"
|
||||
#include "shared/source/kernel/kernel_arg_descriptor.h"
|
||||
@@ -32,7 +33,7 @@ struct KernelDescriptorExt;
|
||||
KernelDescriptorExt *allocateKernelDescriptorExt();
|
||||
void freeKernelDescriptorExt(KernelDescriptorExt *);
|
||||
|
||||
struct KernelDescriptor {
|
||||
struct KernelDescriptor : NEO::NonCopyableOrMovableClass {
|
||||
static bool isBindlessAddressingKernel(const KernelDescriptor &desc);
|
||||
|
||||
enum AddressingMode : uint8_t {
|
||||
|
||||
Reference in New Issue
Block a user