2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "patch_g7.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "patch_list.h"
|
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#include <map>
|
2019-05-23 19:11:12 +08:00
|
|
|
#include <string>
|
|
|
|
#include <unordered_map>
|
2019-02-27 18:39:32 +08:00
|
|
|
#include <vector>
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2018-06-13 03:54:39 +08:00
|
|
|
using iOpenCL::SKernelBinaryHeaderCommon;
|
2017-12-21 07:45:38 +08:00
|
|
|
using iOpenCL::SPatchAllocateLocalSurface;
|
2018-06-13 03:54:39 +08:00
|
|
|
using iOpenCL::SPatchAllocateStatelessConstantMemorySurfaceWithInitialization;
|
|
|
|
using iOpenCL::SPatchAllocateStatelessDefaultDeviceQueueSurface;
|
|
|
|
using iOpenCL::SPatchAllocateStatelessEventPoolSurface;
|
|
|
|
using iOpenCL::SPatchAllocateStatelessGlobalMemorySurfaceWithInitialization;
|
|
|
|
using iOpenCL::SPatchAllocateStatelessPrintfSurface;
|
|
|
|
using iOpenCL::SPatchAllocateStatelessPrivateSurface;
|
2019-11-19 23:54:47 +08:00
|
|
|
using iOpenCL::SPatchAllocateSyncBuffer;
|
2018-06-13 03:54:39 +08:00
|
|
|
using iOpenCL::SPatchAllocateSystemThreadSurface;
|
2017-12-21 07:45:38 +08:00
|
|
|
using iOpenCL::SPatchBindingTableState;
|
|
|
|
using iOpenCL::SPatchDataParameterBuffer;
|
2018-06-13 03:54:39 +08:00
|
|
|
using iOpenCL::SPatchDataParameterStream;
|
|
|
|
using iOpenCL::SPatchExecutionEnvironment;
|
2017-12-21 07:45:38 +08:00
|
|
|
using iOpenCL::SPatchGlobalMemoryObjectKernelArgument;
|
2018-06-13 03:54:39 +08:00
|
|
|
using iOpenCL::SPatchGtpinFreeGRFInfo;
|
2017-12-21 07:45:38 +08:00
|
|
|
using iOpenCL::SPatchImageMemoryObjectKernelArgument;
|
2018-06-13 03:54:39 +08:00
|
|
|
using iOpenCL::SPatchInterfaceDescriptorData;
|
|
|
|
using iOpenCL::SPatchKernelArgumentInfo;
|
|
|
|
using iOpenCL::SPatchKernelAttributesInfo;
|
|
|
|
using iOpenCL::SPatchMediaInterfaceDescriptorLoad;
|
|
|
|
using iOpenCL::SPatchMediaVFEState;
|
2017-12-21 07:45:38 +08:00
|
|
|
using iOpenCL::SPatchSamplerKernelArgument;
|
2018-06-13 03:54:39 +08:00
|
|
|
using iOpenCL::SPatchSamplerStateArray;
|
|
|
|
using iOpenCL::SPatchStatelessConstantMemoryObjectKernelArgument;
|
|
|
|
using iOpenCL::SPatchStatelessDeviceQueueKernelArgument;
|
|
|
|
using iOpenCL::SPatchStatelessGlobalMemoryObjectKernelArgument;
|
|
|
|
using iOpenCL::SPatchStateSIP;
|
|
|
|
using iOpenCL::SPatchString;
|
2017-12-21 07:45:38 +08:00
|
|
|
using iOpenCL::SPatchThreadPayload;
|
|
|
|
using iOpenCL::SProgramBinaryHeader;
|
|
|
|
|
|
|
|
struct PatchInfo {
|
|
|
|
const SPatchMediaInterfaceDescriptorLoad *interfaceDescriptorDataLoad = nullptr;
|
|
|
|
const SPatchAllocateLocalSurface *localsurface = nullptr;
|
|
|
|
const SPatchMediaVFEState *mediavfestate = nullptr;
|
2019-06-27 20:06:19 +08:00
|
|
|
const SPatchMediaVFEState *mediaVfeStateSlot1 = nullptr;
|
2017-12-21 07:45:38 +08:00
|
|
|
const SPatchInterfaceDescriptorData *interfaceDescriptorData = nullptr;
|
|
|
|
const SPatchSamplerStateArray *samplerStateArray = nullptr;
|
|
|
|
const SPatchBindingTableState *bindingTableState = nullptr;
|
2019-10-28 02:48:26 +08:00
|
|
|
::std::vector<const SPatchDataParameterBuffer *> dataParameterBuffersKernelArgs;
|
2017-12-21 07:45:38 +08:00
|
|
|
::std::vector<const SPatchStatelessGlobalMemoryObjectKernelArgument *>
|
|
|
|
statelessGlobalMemObjKernelArgs;
|
|
|
|
::std::vector<const SPatchImageMemoryObjectKernelArgument *>
|
|
|
|
imageMemObjKernelArgs;
|
|
|
|
::std::vector<const SPatchGlobalMemoryObjectKernelArgument *>
|
|
|
|
globalMemObjKernelArgs;
|
|
|
|
const SPatchDataParameterStream *dataParameterStream = nullptr;
|
|
|
|
const SPatchThreadPayload *threadPayload = nullptr;
|
|
|
|
const SPatchExecutionEnvironment *executionEnvironment = nullptr;
|
|
|
|
const SPatchKernelAttributesInfo *pKernelAttributesInfo = nullptr;
|
|
|
|
const SPatchAllocateStatelessPrivateSurface *pAllocateStatelessPrivateSurface = nullptr;
|
2019-11-19 23:54:47 +08:00
|
|
|
const SPatchAllocateSyncBuffer *pAllocateSyncBuffer = nullptr;
|
2017-12-21 07:45:38 +08:00
|
|
|
const SPatchAllocateStatelessConstantMemorySurfaceWithInitialization *pAllocateStatelessConstantMemorySurfaceWithInitialization = nullptr;
|
|
|
|
const SPatchAllocateStatelessGlobalMemorySurfaceWithInitialization *pAllocateStatelessGlobalMemorySurfaceWithInitialization = nullptr;
|
|
|
|
const SPatchAllocateStatelessPrintfSurface *pAllocateStatelessPrintfSurface = nullptr;
|
|
|
|
const SPatchAllocateStatelessEventPoolSurface *pAllocateStatelessEventPoolSurface = nullptr;
|
|
|
|
const SPatchAllocateStatelessDefaultDeviceQueueSurface *pAllocateStatelessDefaultDeviceQueueSurface = nullptr;
|
2018-03-09 21:40:31 +08:00
|
|
|
const SPatchAllocateSystemThreadSurface *pAllocateSystemThreadSurface = nullptr;
|
2019-05-23 19:11:12 +08:00
|
|
|
::std::unordered_map<uint32_t, std::string> stringDataMap;
|
2017-12-21 07:45:38 +08:00
|
|
|
::std::vector<const SPatchKernelArgumentInfo *> kernelArgumentInfo;
|
|
|
|
};
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|