mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +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
@ -592,10 +592,10 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenTwoConsecu
|
||||
|
||||
size_t GWS = 1;
|
||||
uint32_t scratchSize = 1024;
|
||||
SPatchMediaVFEState mediaVFEstate;
|
||||
|
||||
SPatchMediaVFEState mediaVFEstate;
|
||||
mediaVFEstate.PerThreadScratchSpace = scratchSize;
|
||||
kernel.kernelInfo.patchInfo.mediavfestate = &mediaVFEstate;
|
||||
populateKernelDescriptor(kernel.kernelInfo.kernelDescriptor, mediaVFEstate, 0);
|
||||
|
||||
EXPECT_EQ(false, kernel.mockKernel->isBuiltIn);
|
||||
|
||||
@ -667,6 +667,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenTwoConsecu
|
||||
//now re-try to see if SBA is not programmed
|
||||
scratchSize *= 2;
|
||||
mediaVFEstate.PerThreadScratchSpace = scratchSize;
|
||||
populateKernelDescriptor(kernel.kernelInfo.kernelDescriptor, mediaVFEstate, 0);
|
||||
|
||||
commandQueue.enqueueKernel(kernel, 1, nullptr, &GWS, nullptr, 0, nullptr, nullptr);
|
||||
|
||||
@ -707,10 +708,10 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenNDRangeKer
|
||||
|
||||
size_t GWS = 1;
|
||||
uint32_t scratchSize = 1024;
|
||||
SPatchMediaVFEState mediaVFEstate;
|
||||
|
||||
SPatchMediaVFEState mediaVFEstate;
|
||||
mediaVFEstate.PerThreadScratchSpace = scratchSize;
|
||||
kernel.kernelInfo.patchInfo.mediavfestate = &mediaVFEstate;
|
||||
populateKernelDescriptor(kernel.kernelInfo.kernelDescriptor, mediaVFEstate, 0);
|
||||
|
||||
EXPECT_EQ(false, kernel.mockKernel->isBuiltIn);
|
||||
|
||||
|
Reference in New Issue
Block a user