mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
Make HW Helper abstract class.
- removes unnecessary dummy methods. - removes unnecessary dummy methods tests. Change-Id: I6179484ca9a5471637cb466ebe86f258b1e05e5e
This commit is contained in:
committed by
sys_ocldev
parent
0825c009cf
commit
42baecd2d4
@@ -28,36 +28,4 @@ HwHelper *hwHelperFactory[IGFX_MAX_CORE] = {};
|
||||
HwHelper &HwHelper::get(GFXCORE_FAMILY gfxCore) {
|
||||
return *hwHelperFactory[gfxCore];
|
||||
}
|
||||
|
||||
uint32_t HwHelper::getBindingTableStateSurfaceStatePointer(void *pBindingTable, uint32_t index) {
|
||||
return 0;
|
||||
}
|
||||
size_t HwHelper::getBindingTableStateSize() const {
|
||||
return 0;
|
||||
}
|
||||
uint32_t HwHelper::getBindingTableStateAlignement() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t HwHelper::getInterfaceDescriptorDataSize() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t HwHelper::getMaxBarrierRegisterPerSlice() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void HwHelper::setCapabilityCoherencyFlag(const HardwareInfo *pHwInfo, bool &coherencyFlag) {
|
||||
}
|
||||
|
||||
bool HwHelper::setupPreemptionRegisters(HardwareInfo *pHwInfo, bool enable) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void HwHelper::adjustDefaultEngineType(HardwareInfo *pHwInfo) {
|
||||
}
|
||||
|
||||
void HwHelper::setupHardwareCapabilities(HardwareCapabilities *caps) {
|
||||
}
|
||||
|
||||
} // namespace OCLRT
|
||||
|
||||
@@ -33,15 +33,15 @@ struct HardwareCapabilities;
|
||||
class HwHelper {
|
||||
public:
|
||||
static HwHelper &get(GFXCORE_FAMILY gfxCore);
|
||||
virtual uint32_t getBindingTableStateSurfaceStatePointer(void *pBindingTable, uint32_t index);
|
||||
virtual size_t getBindingTableStateSize() const;
|
||||
virtual uint32_t getBindingTableStateAlignement() const;
|
||||
virtual size_t getInterfaceDescriptorDataSize() const;
|
||||
virtual size_t getMaxBarrierRegisterPerSlice() const;
|
||||
virtual void setCapabilityCoherencyFlag(const HardwareInfo *pHwInfo, bool &coherencyFlag);
|
||||
virtual bool setupPreemptionRegisters(HardwareInfo *pHwInfo, bool enable);
|
||||
virtual void adjustDefaultEngineType(HardwareInfo *pHwInfo);
|
||||
virtual void setupHardwareCapabilities(HardwareCapabilities *caps);
|
||||
virtual uint32_t getBindingTableStateSurfaceStatePointer(void *pBindingTable, uint32_t index) = 0;
|
||||
virtual size_t getBindingTableStateSize() const = 0;
|
||||
virtual uint32_t getBindingTableStateAlignement() const = 0;
|
||||
virtual size_t getInterfaceDescriptorDataSize() const = 0;
|
||||
virtual size_t getMaxBarrierRegisterPerSlice() const = 0;
|
||||
virtual void setCapabilityCoherencyFlag(const HardwareInfo *pHwInfo, bool &coherencyFlag) = 0;
|
||||
virtual bool setupPreemptionRegisters(HardwareInfo *pHwInfo, bool enable) = 0;
|
||||
virtual void adjustDefaultEngineType(HardwareInfo *pHwInfo) = 0;
|
||||
virtual void setupHardwareCapabilities(HardwareCapabilities *caps) = 0;
|
||||
|
||||
protected:
|
||||
HwHelper(){};
|
||||
|
||||
Reference in New Issue
Block a user