mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 00:59:38 +08:00
refactor: remove not needed code.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
18a7a5f6fa
commit
363aca782f
@@ -284,12 +284,6 @@ cl_int Kernel::initialize() {
|
||||
patchWithImplicitSurface(globalMemory, *program->getGlobalSurface(rootDeviceIndex), arg);
|
||||
}
|
||||
|
||||
if (isValidOffset(kernelDescriptor.payloadMappings.implicitArgs.deviceSideEnqueueEventPoolSurfaceAddress.bindful)) {
|
||||
auto surfaceState = ptrOffset(reinterpret_cast<uintptr_t *>(getSurfaceStateHeap()),
|
||||
kernelDescriptor.payloadMappings.implicitArgs.deviceSideEnqueueEventPoolSurfaceAddress.bindful);
|
||||
Buffer::setSurfaceState(&pClDevice->getDevice(), surfaceState, false, false, 0, nullptr, 0, nullptr, 0, 0, areMultipleSubDevicesInContext());
|
||||
}
|
||||
|
||||
if (isValidOffset(kernelDescriptor.payloadMappings.implicitArgs.deviceSideEnqueueDefaultQueueSurfaceAddress.bindful)) {
|
||||
auto surfaceState = ptrOffset(reinterpret_cast<uintptr_t *>(getSurfaceStateHeap()),
|
||||
kernelDescriptor.payloadMappings.implicitArgs.deviceSideEnqueueDefaultQueueSurfaceAddress.bindful);
|
||||
|
||||
@@ -674,7 +674,6 @@ HWCMDTEST_F(IGFX_GEN12LP_CORE, HardwareCommandsTest, WhenGettingBindingTableStat
|
||||
pKernelInfo->setGlobalVariablesSurface(8, 0, 0);
|
||||
pKernelInfo->setGlobalConstantsSurface(8, 8, 64);
|
||||
pKernelInfo->setPrivateMemory(32, false, 8, 16, 128);
|
||||
pKernelInfo->setDeviceSideEnqueueEventPoolSurface(8, 24, 192);
|
||||
pKernelInfo->setDeviceSideEnqueueDefaultQueueSurface(8, 32, 256);
|
||||
|
||||
// create program with valid context
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -11,26 +11,6 @@
|
||||
|
||||
#include "patch_g7.h"
|
||||
|
||||
TEST_F(KernelDataTest, givenPatchTokenAllocateStatelessEventPoolSurfaceWhenDecodeTokensThenTokenLocatedInPatchInfo) {
|
||||
iOpenCL::SPatchAllocateStatelessEventPoolSurface allocateStatelessEventPoolSurface;
|
||||
allocateStatelessEventPoolSurface.Token = PATCH_TOKEN_ALLOCATE_STATELESS_EVENT_POOL_SURFACE;
|
||||
allocateStatelessEventPoolSurface.Size = sizeof(SPatchAllocateStatelessEventPoolSurface);
|
||||
|
||||
allocateStatelessEventPoolSurface.DataParamSize = 7;
|
||||
allocateStatelessEventPoolSurface.DataParamOffset = 0xABC;
|
||||
allocateStatelessEventPoolSurface.SurfaceStateHeapOffset = 0xDEF;
|
||||
|
||||
pPatchList = &allocateStatelessEventPoolSurface;
|
||||
patchListSize = allocateStatelessEventPoolSurface.Size;
|
||||
|
||||
buildAndDecode();
|
||||
|
||||
const auto &eventPoolArg = pKernelInfo->kernelDescriptor.payloadMappings.implicitArgs.deviceSideEnqueueEventPoolSurfaceAddress;
|
||||
EXPECT_EQ_VAL(allocateStatelessEventPoolSurface.DataParamOffset, eventPoolArg.stateless);
|
||||
EXPECT_EQ_VAL(allocateStatelessEventPoolSurface.DataParamSize, eventPoolArg.pointerSize);
|
||||
EXPECT_EQ_VAL(allocateStatelessEventPoolSurface.SurfaceStateHeapOffset, eventPoolArg.bindful);
|
||||
}
|
||||
|
||||
TEST_F(KernelDataTest, givenDataParameterPreferredWorkgroupMultipleTokenWhenBinaryIsdecodedThenCorrectOffsetIsAssigned) {
|
||||
const uint32_t offset = 0x100;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user