mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Remove PatchTokens from KernelInfo
Use KernelDescriptor instead of patchTokens stored in KernelInfo's patchInfo. Removed: SPatchMediaInterfaceDescriptorLoad, SPatchAllocateLocalSurface, SPatchMediaVFEState(slot 0), SPatchMediaVFEState(slot 1), SPatchInterfaceDescriptorData, SPatchSamplerStateArray, SPatchBindingTableState, SPatchDataParameterBuffer, SPatchDataParameterStream, SPatchThreadPayload, SPatchKernelAttributesInfo, SPatchAllocateStatelessPrivateSurface, SPatchAllocateSyncBuffer, SPatchAllocateStatelessConstantMemorySurfaceWithInitialization, SPatchAllocateStatelessGlobalMemorySurfaceWithInitialization, SPatchAllocateSystemThreadSurface. Related-To: NEO-4729 Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
03631ce22b
commit
41f3bd00ff
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "shared/source/program/program_info.h"
|
||||
|
||||
#include "opencl/source/program/kernel_info.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_kernel.h"
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "gtest/gtest.h"
|
||||
@@ -40,9 +41,9 @@ TEST(GetMaxInlineSlmNeeded, GivenProgramWithKernelsThenReturnMaxOfInlineSlmNeede
|
||||
slmTokens[2].TotalInlineLocalMemorySize = 32;
|
||||
NEO::ProgramInfo programInfo;
|
||||
programInfo.kernelInfos = {new NEO::KernelInfo(), new NEO::KernelInfo(), new NEO::KernelInfo()};
|
||||
programInfo.kernelInfos[0]->patchInfo.localsurface = &slmTokens[0];
|
||||
programInfo.kernelInfos[1]->patchInfo.localsurface = &slmTokens[1];
|
||||
programInfo.kernelInfos[2]->patchInfo.localsurface = &slmTokens[2];
|
||||
populateKernelDescriptor(programInfo.kernelInfos[0]->kernelDescriptor, slmTokens[0]);
|
||||
populateKernelDescriptor(programInfo.kernelInfos[1]->kernelDescriptor, slmTokens[1]);
|
||||
populateKernelDescriptor(programInfo.kernelInfos[2]->kernelDescriptor, slmTokens[2]);
|
||||
EXPECT_EQ(64U, NEO::getMaxInlineSlmNeeded(programInfo));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user