Skip to content

Commit f09fd52

Browse files
Remove redundant using declarations
Signed-off-by: Filip Hazubski <[email protected]>
1 parent 95103c3 commit f09fd52

File tree

8 files changed

+5
-59
lines changed

8 files changed

+5
-59
lines changed

level_zero/core/source/cmdlist/cmdlist_hw.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ struct Event;
4343

4444
template <GFXCORE_FAMILY gfxCoreFamily>
4545
struct CommandListCoreFamily : CommandListImp {
46-
using BaseClass = CommandListImp;
4746
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
48-
using INTERFACE_DESCRIPTOR_DATA = typename GfxFamily::INTERFACE_DESCRIPTOR_DATA;
49-
using STATE_BASE_ADDRESS = typename GfxFamily::STATE_BASE_ADDRESS;
5047

5148
using CommandListImp::CommandListImp;
5249
ze_result_t initialize(Device *device, NEO::EngineGroupType engineGroupType, ze_command_list_flags_t flags) override;

level_zero/core/source/cmdlist/cmdlist_hw.inl

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::reset() {
108108
template <GFXCORE_FAMILY gfxCoreFamily>
109109
ze_result_t CommandListCoreFamily<gfxCoreFamily>::initialize(Device *device, NEO::EngineGroupType engineGroupType,
110110
ze_command_list_flags_t flags) {
111-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
112111
this->device = device;
113112
this->commandListPreemptionMode = device->getDevicePreemptionMode();
114113
this->engineGroupType = engineGroupType;
@@ -158,8 +157,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::executeCommandListImmediate(bo
158157

159158
template <GFXCORE_FAMILY gfxCoreFamily>
160159
ze_result_t CommandListCoreFamily<gfxCoreFamily>::close() {
161-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
162-
163160
commandContainer.removeDuplicatesFromResidencyContainer();
164161
NEO::EncodeBatchBufferStartOrEnd<GfxFamily>::programBatchBufferEnd(commandContainer);
165162

@@ -260,7 +257,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendLaunchMultipleKernelsInd
260257
auto alloc = allocData->gpuAllocations.getGraphicsAllocation(device->getRootDeviceIndex());
261258
commandContainer.addToResidencyContainer(alloc);
262259

263-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
264260
for (uint32_t i = 0; i < numKernels; i++) {
265261
NEO::EncodeMathMMIO<GfxFamily>::encodeGreaterThanPredicate(commandContainer, alloc->getGpuAddress(), i);
266262

@@ -279,9 +275,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendLaunchMultipleKernelsInd
279275

280276
template <GFXCORE_FAMILY gfxCoreFamily>
281277
ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendEventReset(ze_event_handle_t hEvent) {
282-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
283278
using POST_SYNC_OPERATION = typename GfxFamily::PIPE_CONTROL::POST_SYNC_OPERATION;
284-
using MI_BATCH_BUFFER_END = typename GfxFamily::MI_BATCH_BUFFER_END;
285279
auto event = Event::fromHandle(hEvent);
286280

287281
uint64_t baseAddr = event->getGpuAddress(this->device);
@@ -869,7 +863,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopyBlit(uintptr_t
869863

870864
auto clearColorAllocation = device->getNEODevice()->getDefaultEngine().commandStreamReceiver->getClearColorAllocation();
871865

872-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
873866
auto blitProperties = NEO::BlitProperties::constructPropertiesForCopy(dstPtrAlloc, srcPtrAlloc, {dstOffset, 0, 0}, {srcOffset, 0, 0}, {size, 0, 0}, 0, 0, 0, 0, clearColorAllocation);
874867
commandContainer.addToResidencyContainer(dstPtrAlloc);
875868
commandContainer.addToResidencyContainer(srcPtrAlloc);
@@ -893,8 +886,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopyBlitRegion(NEO
893886
size_t dstRowPitch, size_t dstSlicePitch,
894887
const Vec3<size_t> &srcSize, const Vec3<size_t> &dstSize, ze_event_handle_t hSignalEvent,
895888
uint32_t numWaitEvents, ze_event_handle_t *phWaitEvents) {
896-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
897-
898889
dstRegion.originX += static_cast<uint32_t>(dstOffset);
899890
srcRegion.originX += static_cast<uint32_t>(srcOffset);
900891
uint32_t bytesPerPixel = NEO::BlitCommandsHelper<GfxFamily>::getAvailableBytesPerPixel(copySize.x, srcRegion.originX, dstRegion.originX, srcSize.x, dstSize.x);
@@ -939,8 +930,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendCopyImageBlit(NEO::Graph
939930
size_t dstRowPitch, size_t dstSlicePitch,
940931
size_t bytesPerPixel, const Vec3<size_t> &copySize,
941932
const Vec3<size_t> &srcSize, const Vec3<size_t> &dstSize, ze_event_handle_t hSignalEvent) {
942-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
943-
944933
auto clearColorAllocation = device->getNEODevice()->getDefaultEngine().commandStreamReceiver->getClearColorAllocation();
945934

946935
auto blitProperties = NEO::BlitProperties::constructPropertiesForCopy(dst, src,
@@ -963,8 +952,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendPageFaultCopy(NEO::Graph
963952
NEO::GraphicsAllocation *srcAllocation,
964953
size_t size, bool flushHost) {
965954

966-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
967-
968955
size_t middleElSize = sizeof(uint32_t) * 4;
969956
uintptr_t rightSize = size % middleElSize;
970957
bool isStateless = false;
@@ -1022,7 +1009,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopy(void *dstptr,
10221009
uint32_t numWaitEvents,
10231010
ze_event_handle_t *phWaitEvents) {
10241011

1025-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
10261012
uintptr_t start = reinterpret_cast<uintptr_t>(dstptr);
10271013
bool isStateless = false;
10281014

@@ -1411,7 +1397,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryFill(void *ptr,
14111397
return res;
14121398
}
14131399

1414-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
14151400
bool hostPointerNeedsFlush = false;
14161401

14171402
NEO::SvmAllocationData *allocData = nullptr;
@@ -1653,7 +1638,6 @@ void CommandListCoreFamily<gfxCoreFamily>::appendSignalEventPostWalker(ze_event_
16531638
appendEventForProfiling(hEvent, false);
16541639
} else {
16551640
using POST_SYNC_OPERATION = typename GfxFamily::PIPE_CONTROL::POST_SYNC_OPERATION;
1656-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
16571641

16581642
commandContainer.addToResidencyContainer(&event->getAllocation(this->device));
16591643
uint64_t baseAddr = event->getGpuAddress(this->device);
@@ -1686,7 +1670,6 @@ void CommandListCoreFamily<gfxCoreFamily>::appendSignalEventPostWalker(ze_event_
16861670

16871671
template <GFXCORE_FAMILY gfxCoreFamily>
16881672
void CommandListCoreFamily<gfxCoreFamily>::appendEventForProfilingCopyCommand(ze_event_handle_t hEvent, bool beforeWalker) {
1689-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
16901673
auto event = Event::fromHandle(hEvent);
16911674

16921675
if (!event->isEventTimestampFlagSet()) {
@@ -1799,7 +1782,6 @@ inline ze_result_t CommandListCoreFamily<gfxCoreFamily>::addEventsToCmdList(uint
17991782
template <GFXCORE_FAMILY gfxCoreFamily>
18001783
ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendSignalEvent(ze_event_handle_t hEvent) {
18011784
using POST_SYNC_OPERATION = typename GfxFamily::PIPE_CONTROL::POST_SYNC_OPERATION;
1802-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
18031785
auto event = Event::fromHandle(hEvent);
18041786

18051787
commandContainer.addToResidencyContainer(&event->getAllocation(this->device));
@@ -1868,8 +1850,6 @@ template <GFXCORE_FAMILY gfxCoreFamily>
18681850
ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendWaitOnEvents(uint32_t numEvents,
18691851
ze_event_handle_t *phEvent) {
18701852

1871-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
1872-
using MI_SEMAPHORE_WAIT = typename GfxFamily::MI_SEMAPHORE_WAIT;
18731853
using COMPARE_OPERATION = typename GfxFamily::MI_SEMAPHORE_WAIT::COMPARE_OPERATION;
18741854

18751855
NEO::Device *neoDevice = device->getNEODevice();
@@ -2017,7 +1997,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendWriteGlobalTimestamp(
20171997
uint64_t *dstptr, ze_event_handle_t hSignalEvent,
20181998
uint32_t numWaitEvents, ze_event_handle_t *phWaitEvents) {
20191999

2020-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
20212000
using POST_SYNC_OPERATION = typename GfxFamily::PIPE_CONTROL::POST_SYNC_OPERATION;
20222001

20232002
if (numWaitEvents > 0) {
@@ -2169,7 +2148,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::reserveSpace(size_t size, void
21692148

21702149
template <GFXCORE_FAMILY gfxCoreFamily>
21712150
ze_result_t CommandListCoreFamily<gfxCoreFamily>::prepareIndirectParams(const ze_group_count_t *pThreadGroupDimensions) {
2172-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
21732151
auto allocData = device->getDriverHandle()->getSvmAllocsManager()->getSVMAlloc(pThreadGroupDimensions);
21742152
if (allocData) {
21752153
auto alloc = allocData->gpuAllocations.getGraphicsAllocation(device->getRootDeviceIndex());
@@ -2198,7 +2176,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::prepareIndirectParams(const ze
21982176

21992177
template <GFXCORE_FAMILY gfxCoreFamily>
22002178
void CommandListCoreFamily<gfxCoreFamily>::updateStreamProperties(Kernel &kernel, bool isMultiOsContextCapable, bool isCooperative) {
2201-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
22022179
using VFE_STATE_TYPE = typename GfxFamily::VFE_STATE_TYPE;
22032180

22042181
auto &hwInfo = device->getHwInfo();
@@ -2233,7 +2210,6 @@ void CommandListCoreFamily<gfxCoreFamily>::updateStreamProperties(Kernel &kernel
22332210

22342211
template <GFXCORE_FAMILY gfxCoreFamily>
22352212
void CommandListCoreFamily<gfxCoreFamily>::clearCommandsToPatch() {
2236-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
22372213
using VFE_STATE_TYPE = typename GfxFamily::VFE_STATE_TYPE;
22382214

22392215
for (auto &commandToPatch : commandsToPatch) {
@@ -2251,15 +2227,15 @@ void CommandListCoreFamily<gfxCoreFamily>::clearCommandsToPatch() {
22512227

22522228
template <GFXCORE_FAMILY gfxCoreFamily>
22532229
ze_result_t CommandListCoreFamily<gfxCoreFamily>::setGlobalWorkSizeIndirect(NEO::CrossThreadDataOffset offsets[3], uint64_t crossThreadAddress, uint32_t lws[3]) {
2254-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
2255-
22562230
NEO::EncodeIndirectParams<GfxFamily>::setGlobalWorkSizeIndirect(commandContainer, offsets, crossThreadAddress, lws);
22572231

22582232
return ZE_RESULT_SUCCESS;
22592233
}
22602234

22612235
template <GFXCORE_FAMILY gfxCoreFamily>
22622236
void CommandListCoreFamily<gfxCoreFamily>::programStateBaseAddress(NEO::CommandContainer &container, bool genericMediaStateClearRequired) {
2237+
using STATE_BASE_ADDRESS = typename GfxFamily::STATE_BASE_ADDRESS;
2238+
22632239
const auto &hwInfo = this->device->getHwInfo();
22642240
bool isRcs = (this->engineGroupType == NEO::EngineGroupType::RenderCompute);
22652241

level_zero/core/source/cmdlist/cmdlist_hw_xehp_and_later.inl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ template <GFXCORE_FAMILY gfxCoreFamily>
4040
void CommandListCoreFamily<gfxCoreFamily>::applyMemoryRangesBarrier(uint32_t numRanges,
4141
const size_t *pRangeSizes,
4242
const void **pRanges) {
43-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
4443

4544
NEO::LinearStream *commandStream = commandContainer.getCommandStream();
4645
NEO::SVMAllocsManager *svmAllocsManager =
@@ -128,9 +127,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernelWithParams(z
128127
bool isIndirect,
129128
bool isPredicate,
130129
bool isCooperative) {
131-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
132-
using COMPUTE_WALKER = typename GfxFamily::COMPUTE_WALKER;
133-
using STATE_BASE_ADDRESS = typename GfxFamily::STATE_BASE_ADDRESS;
134130

135131
const auto &hwInfo = this->device->getHwInfo();
136132
if (NEO::DebugManager.flags.ForcePipeControlPriorToWalker.get()) {

level_zero/core/source/cmdqueue/cmdqueue_hw.inl

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,9 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
7070
ze_fence_handle_t hFence,
7171
bool performMigration) {
7272

73-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
7473
using MI_BATCH_BUFFER_START = typename GfxFamily::MI_BATCH_BUFFER_START;
7574
using MI_BATCH_BUFFER_END = typename GfxFamily::MI_BATCH_BUFFER_END;
7675

77-
using PIPE_CONTROL = typename GfxFamily::PIPE_CONTROL;
78-
using POST_SYNC_OPERATION = typename PIPE_CONTROL::POST_SYNC_OPERATION;
79-
80-
using MI_LOAD_REGISTER_MEM = typename GfxFamily::MI_LOAD_REGISTER_MEM;
81-
using MI_LOAD_REGISTER_IMM = typename GfxFamily::MI_LOAD_REGISTER_IMM;
82-
8376
auto lockCSR = csr->obtainUniqueOwnership();
8477

8578
auto anyCommandListWithCooperativeKernels = false;
@@ -493,7 +486,6 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
493486

494487
template <GFXCORE_FAMILY gfxCoreFamily>
495488
void CommandQueueHw<gfxCoreFamily>::programFrontEnd(uint64_t scratchAddress, uint32_t perThreadScratchSpaceSize, NEO::LinearStream &commandStream) {
496-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
497489
UNRECOVERABLE_IF(csr == nullptr);
498490
auto &hwInfo = device->getHwInfo();
499491
auto &hwHelper = NEO::HwHelper::get(hwInfo.platform.eRenderCoreFamily);
@@ -511,7 +503,6 @@ void CommandQueueHw<gfxCoreFamily>::programFrontEnd(uint64_t scratchAddress, uin
511503

512504
template <GFXCORE_FAMILY gfxCoreFamily>
513505
size_t CommandQueueHw<gfxCoreFamily>::estimateFrontEndCmdSize() {
514-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
515506
return NEO::PreambleHelper<GfxFamily>::getVFECommandsSize();
516507
}
517508

@@ -546,15 +537,12 @@ size_t CommandQueueHw<gfxCoreFamily>::estimateFrontEndCmdSizeForMultipleCommandL
546537

547538
template <GFXCORE_FAMILY gfxCoreFamily>
548539
size_t CommandQueueHw<gfxCoreFamily>::estimatePipelineSelect() {
549-
550-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
551540
return NEO::PreambleHelper<GfxFamily>::getCmdSizeForPipelineSelect(device->getHwInfo());
552541
}
553542

554543
template <GFXCORE_FAMILY gfxCoreFamily>
555544
void CommandQueueHw<gfxCoreFamily>::programPipelineSelect(NEO::LinearStream &commandStream) {
556545
NEO::PipelineSelectArgs args = {0, 0};
557-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
558546
NEO::PreambleHelper<GfxFamily>::programPipelineSelect(&commandStream, args, device->getHwInfo());
559547
gpgpuEnabled = true;
560548
}
@@ -566,9 +554,7 @@ bool CommandQueueHw<gfxCoreFamily>::isDispatchTaskCountPostSyncRequired(ze_fence
566554

567555
template <GFXCORE_FAMILY gfxCoreFamily>
568556
void CommandQueueHw<gfxCoreFamily>::dispatchTaskCountPostSync(NEO::LinearStream &commandStream, const NEO::HardwareInfo &hwInfo) {
569-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
570-
using PIPE_CONTROL = typename GfxFamily::PIPE_CONTROL;
571-
using POST_SYNC_OPERATION = typename PIPE_CONTROL::POST_SYNC_OPERATION;
557+
using POST_SYNC_OPERATION = typename GfxFamily::PIPE_CONTROL::POST_SYNC_OPERATION;
572558

573559
uint64_t postSyncAddress = csr->getTagAllocation()->getGpuAddress();
574560
uint32_t postSyncData = csr->peekTaskCount() + 1;
@@ -595,7 +581,6 @@ void CommandQueueHw<gfxCoreFamily>::dispatchTaskCountPostSync(NEO::LinearStream
595581

596582
template <GFXCORE_FAMILY gfxCoreFamily>
597583
bool CommandQueueHw<gfxCoreFamily>::getPreemptionCmdProgramming() {
598-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
599584
return NEO::PreemptionHelper::getRequiredCmdStreamSize<GfxFamily>(NEO::PreemptionMode::MidThread, NEO::PreemptionMode::Initial) > 0u;
600585
}
601586

level_zero/core/source/cmdqueue/cmdqueue_hw_base.inl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ namespace L0 {
3131

3232
template <GFXCORE_FAMILY gfxCoreFamily>
3333
void CommandQueueHw<gfxCoreFamily>::programStateBaseAddress(uint64_t gsba, bool useLocalMemoryForIndirectHeap, NEO::LinearStream &commandStream, bool cachedMOCSAllowed) {
34-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
3534
using STATE_BASE_ADDRESS = typename GfxFamily::STATE_BASE_ADDRESS;
3635

3736
const auto &hwInfo = this->device->getHwInfo();
@@ -91,7 +90,6 @@ void CommandQueueHw<gfxCoreFamily>::programStateBaseAddress(uint64_t gsba, bool
9190

9291
template <GFXCORE_FAMILY gfxCoreFamily>
9392
size_t CommandQueueHw<gfxCoreFamily>::estimateStateBaseAddressCmdSize() {
94-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
9593
using STATE_BASE_ADDRESS = typename GfxFamily::STATE_BASE_ADDRESS;
9694
using PIPE_CONTROL = typename GfxFamily::PIPE_CONTROL;
9795

level_zero/core/source/cmdqueue/cmdqueue_xe_hp_core_and_later.inl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ namespace L0 {
2222

2323
template <GFXCORE_FAMILY gfxCoreFamily>
2424
void CommandQueueHw<gfxCoreFamily>::programStateBaseAddress(uint64_t gsba, bool useLocalMemoryForIndirectHeap, NEO::LinearStream &commandStream, bool cachedMOCSAllowed) {
25-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
2625
using STATE_BASE_ADDRESS = typename GfxFamily::STATE_BASE_ADDRESS;
2726
if (NEO::ApiSpecificConfig::getBindlessConfiguration()) {
2827
NEO::Device *neoDevice = device->getNEODevice();
@@ -85,7 +84,6 @@ void CommandQueueHw<gfxCoreFamily>::programStateBaseAddress(uint64_t gsba, bool
8584

8685
template <GFXCORE_FAMILY gfxCoreFamily>
8786
size_t CommandQueueHw<gfxCoreFamily>::estimateStateBaseAddressCmdSize() {
88-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
8987
using STATE_BASE_ADDRESS = typename GfxFamily::STATE_BASE_ADDRESS;
9088
using PIPE_CONTROL = typename GfxFamily::PIPE_CONTROL;
9189
using _3DSTATE_BINDING_TABLE_POOL_ALLOC = typename GfxFamily::_3DSTATE_BINDING_TABLE_POOL_ALLOC;
@@ -138,7 +136,6 @@ void CommandQueueHw<gfxCoreFamily>::handleScratchSpace(NEO::HeapContainer &sshHe
138136

139137
template <GFXCORE_FAMILY gfxCoreFamily>
140138
void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint64_t scratchAddress) {
141-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
142139
using CFE_STATE = typename GfxFamily::CFE_STATE;
143140

144141
uint32_t lowScratchAddress = uint32_t(0xFFFFFFFF & scratchAddress);

level_zero/core/source/gen12lp/definitions/cache_flush_gen12lp.inl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020-2021 Intel Corporation
2+
* Copyright (C) 2020-2022 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -17,8 +17,6 @@ void CommandListCoreFamily<gfxCoreFamily>::applyMemoryRangesBarrier(uint32_t num
1717
const size_t *pRangeSizes,
1818
const void **pRanges) {
1919

20-
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
21-
2220
const auto &hwInfo = this->device->getHwInfo();
2321
bool supportL3Control = hwInfo.capabilityTable.supportCacheFlushAfterWalker;
2422
if (!supportL3Control) {

level_zero/core/source/gen9/cmdlist_gen9.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020-2021 Intel Corporation
2+
* Copyright (C) 2020-2022 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -23,7 +23,6 @@ struct CommandListProductFamily : public CommandListCoreFamily<IGFX_GEN9_CORE> {
2323
using CommandListCoreFamily::CommandListCoreFamily;
2424

2525
void programL3(bool isSLMused) override {
26-
using GfxFamily = typename NEO::GfxFamilyMapper<IGFX_GEN9_CORE>::GfxFamily;
2726
NEO::EncodeL3State<GfxFamily>::encode(commandContainer, isSLMused);
2827
}
2928
};

0 commit comments

Comments
 (0)