CommandList constructors cleanup
Change-Id: I47b17cc657f44ca54daece0a570ee40cfd10e8f1 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
parent
32e1b7d1a7
commit
bb5df7afb9
|
@ -30,7 +30,7 @@ struct CommandList : _ze_command_list_handle_t {
|
|||
static constexpr uint32_t defaultNumIddsPerBlock = maxNumInterfaceDescriptorsPerMediaInterfaceDescriptorLoad;
|
||||
static constexpr uint32_t commandListimmediateIddsPerBlock = 1u;
|
||||
|
||||
CommandList() {}
|
||||
CommandList() = delete;
|
||||
CommandList(uint32_t numIddsPerBlock) : commandContainer(numIddsPerBlock) {}
|
||||
|
||||
template <typename Type>
|
||||
|
|
|
@ -34,8 +34,6 @@ struct CommandListCoreFamily : CommandListImp {
|
|||
using INTERFACE_DESCRIPTOR_DATA = typename GfxFamily::INTERFACE_DESCRIPTOR_DATA;
|
||||
|
||||
using CommandListImp::CommandListImp;
|
||||
CommandListCoreFamily() {}
|
||||
CommandListCoreFamily(uint32_t numIddsPerBlock) : CommandListImp(numIddsPerBlock) {}
|
||||
|
||||
bool initialize(Device *device) override;
|
||||
virtual void programL3(bool isSLMused);
|
||||
|
|
|
@ -20,8 +20,6 @@ struct CommandListCoreFamilyImmediate : public CommandListCoreFamily<gfxCoreFami
|
|||
using BaseClass::executeCommandListImmediate;
|
||||
|
||||
using BaseClass::BaseClass;
|
||||
CommandListCoreFamilyImmediate() {}
|
||||
CommandListCoreFamilyImmediate(uint32_t numIddsPerBlock) : CommandListCoreFamily<gfxCoreFamily>(numIddsPerBlock) {}
|
||||
|
||||
ze_result_t appendLaunchKernel(ze_kernel_handle_t hKernel,
|
||||
const ze_group_count_t *pThreadGroupDimensions,
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
namespace L0 {
|
||||
|
||||
struct CommandListImp : CommandList {
|
||||
CommandListImp() {}
|
||||
CommandListImp(uint32_t numIddsPerBlock) : CommandList(numIddsPerBlock) {}
|
||||
using CommandList::CommandList;
|
||||
|
||||
ze_result_t destroy() override;
|
||||
|
||||
ze_result_t appendMetricMemoryBarrier() override;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
namespace L0 {
|
||||
namespace ult {
|
||||
|
||||
WhiteBox<::L0::CommandList>::WhiteBox(Device *device) {}
|
||||
WhiteBox<::L0::CommandList>::WhiteBox(Device *device) : BaseClass(BaseClass::defaultNumIddsPerBlock) {}
|
||||
|
||||
WhiteBox<::L0::CommandList>::~WhiteBox() {}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ struct WhiteBox<::L0::CommandListCoreFamily<gfxCoreFamily>>
|
|||
using BaseClass::appendLaunchKernelWithParams;
|
||||
using BaseClass::commandListPreemptionMode;
|
||||
|
||||
WhiteBox() : ::L0::CommandListCoreFamily<gfxCoreFamily>() {}
|
||||
WhiteBox() : ::L0::CommandListCoreFamily<gfxCoreFamily>(BaseClass::defaultNumIddsPerBlock) {}
|
||||
virtual ~WhiteBox() {}
|
||||
};
|
||||
|
||||
|
@ -43,6 +43,7 @@ using CommandListCoreFamily = WhiteBox<::L0::CommandListCoreFamily<gfxCoreFamily
|
|||
template <>
|
||||
struct WhiteBox<::L0::CommandList> : public ::L0::CommandListImp {
|
||||
using BaseClass = ::L0::CommandListImp;
|
||||
using BaseClass::BaseClass;
|
||||
using BaseClass::commandContainer;
|
||||
using BaseClass::commandListPreemptionMode;
|
||||
using BaseClass::initialize;
|
||||
|
|
|
@ -11,7 +11,9 @@ namespace L0 {
|
|||
namespace ult {
|
||||
|
||||
template <typename Type>
|
||||
struct WhiteBox : public Type {};
|
||||
struct WhiteBox : public Type {
|
||||
using Type::Type;
|
||||
};
|
||||
|
||||
template <typename Type>
|
||||
WhiteBox<Type> *whitebox_cast(Type *obj) {
|
||||
|
|
Loading…
Reference in New Issue