mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Revert "Use igc interface to get max param size"
This reverts commit a04d206fdd.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2f0fcf4aee
commit
d81c637b96
@@ -345,10 +345,6 @@ TranslationOutput::ErrorCode CompilerInterface::getSipKernelBinary(NEO::Device &
|
||||
return TranslationOutput::ErrorCode::Success;
|
||||
}
|
||||
|
||||
CIF::RAII::UPtr_t<IGC::IgcFeaturesAndWorkaroundsTagOCL> CompilerInterface::getIgcFeaturesAndWorkarounds(NEO::Device const &device) {
|
||||
return getIgcDeviceCtx(device)->GetIgcFeaturesAndWorkaroundsHandle();
|
||||
}
|
||||
|
||||
bool CompilerInterface::loadFcl() {
|
||||
return NEO::loadCompiler<IGC::FclOclDeviceCtx>(Os::frontEndDllName, fclLib, fclMain);
|
||||
}
|
||||
|
||||
@@ -136,8 +136,6 @@ class CompilerInterface {
|
||||
MOCKABLE_VIRTUAL TranslationOutput::ErrorCode getSipKernelBinary(NEO::Device &device, SipKernelType type, std::vector<char> &retBinary,
|
||||
std::vector<char> &stateSaveAreaHeader);
|
||||
|
||||
CIF::RAII::UPtr_t<IGC::IgcFeaturesAndWorkaroundsTagOCL> getIgcFeaturesAndWorkarounds(const NEO::Device &device);
|
||||
|
||||
protected:
|
||||
MOCKABLE_VIRTUAL bool initialize(std::unique_ptr<CompilerCache> cache, bool requireFcl);
|
||||
MOCKABLE_VIRTUAL bool loadFcl();
|
||||
|
||||
@@ -146,7 +146,6 @@ class Device : public ReferenceTrackedObject<Device> {
|
||||
MOCKABLE_VIRTUAL std::unique_ptr<CommandStreamReceiver> createCommandStreamReceiver() const;
|
||||
MOCKABLE_VIRTUAL SubDevice *createSubDevice(uint32_t subDeviceIndex);
|
||||
MOCKABLE_VIRTUAL SubDevice *createEngineInstancedSubDevice(uint32_t subDeviceIndex, aub_stream::EngineType engineType);
|
||||
virtual size_t getMaxParameterSizeFromIGC() const;
|
||||
double getPercentOfGlobalMemoryAvailable() const;
|
||||
virtual void createBindlessHeapsHelper() {}
|
||||
bool createSubDevices();
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/compiler_interface/compiler_interface.h"
|
||||
#include "shared/source/debugger/debugger.h"
|
||||
#include "shared/source/device/device.h"
|
||||
#include "shared/source/helpers/basic_math.h"
|
||||
@@ -20,15 +19,6 @@ namespace NEO {
|
||||
|
||||
static const char *spirvWithVersion = "SPIR-V_1.2 ";
|
||||
|
||||
size_t Device::getMaxParameterSizeFromIGC() const {
|
||||
CompilerInterface *compilerInterface = getCompilerInterface();
|
||||
if (nullptr != compilerInterface) {
|
||||
auto igcFeWa = compilerInterface->getIgcFeaturesAndWorkarounds(*this);
|
||||
return igcFeWa->GetMaxOCLParamSize();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Device::initializeCaps() {
|
||||
auto &hwInfo = getHardwareInfo();
|
||||
auto hwInfoConfig = HwInfoConfig::get(hwInfo.platform.eProductFamily);
|
||||
@@ -57,11 +47,6 @@ void Device::initializeCaps() {
|
||||
deviceInfo.maxWriteImageArgs = 128;
|
||||
deviceInfo.maxParameterSize = 2048;
|
||||
|
||||
size_t maxParameterSizeFromIgc = getMaxParameterSizeFromIGC();
|
||||
if (maxParameterSizeFromIgc > 0) {
|
||||
deviceInfo.maxParameterSize = maxParameterSizeFromIgc;
|
||||
}
|
||||
|
||||
deviceInfo.addressBits = 64;
|
||||
deviceInfo.ilVersion = spirvWithVersion;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user