mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Remove HardwareCapabilities struct
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ec1e39bab8
commit
5856c283c5
@@ -32,7 +32,6 @@ class Gmm;
|
||||
struct AllocationData;
|
||||
struct AllocationProperties;
|
||||
struct EngineControl;
|
||||
struct HardwareCapabilities;
|
||||
struct RootDeviceEnvironment;
|
||||
struct PipeControlArgs;
|
||||
|
||||
@@ -49,7 +48,6 @@ class HwHelper {
|
||||
virtual uint32_t getPitchAlignmentForImage(const HardwareInfo *hwInfo) const = 0;
|
||||
virtual uint32_t getMaxNumSamplers() const = 0;
|
||||
virtual void adjustDefaultEngineType(HardwareInfo *pHwInfo) = 0;
|
||||
virtual void setupHardwareCapabilities(HardwareCapabilities *caps, const HardwareInfo &hwInfo) = 0;
|
||||
virtual bool isL3Configurable(const HardwareInfo &hwInfo) = 0;
|
||||
virtual SipKernelType getSipKernelType(bool debuggingActive) const = 0;
|
||||
virtual bool isLocalMemoryEnabled(const HardwareInfo &hwInfo) const = 0;
|
||||
@@ -147,6 +145,9 @@ class HwHelper {
|
||||
|
||||
virtual bool isScratchSpaceSurfaceStateAccessible() const = 0;
|
||||
virtual uint64_t getRenderSurfaceStateBaseAddress(void *renderSurfaceState) const = 0;
|
||||
virtual size_t getMax3dImageWidthOrHeight() const = 0;
|
||||
virtual uint64_t getMaxMemAllocSize() const = 0;
|
||||
virtual bool isStatelesToStatefullWithOffsetSupported() const = 0;
|
||||
|
||||
protected:
|
||||
HwHelper() = default;
|
||||
@@ -213,8 +214,6 @@ class HwHelperHw : public HwHelper {
|
||||
|
||||
void adjustDefaultEngineType(HardwareInfo *pHwInfo) override;
|
||||
|
||||
void setupHardwareCapabilities(HardwareCapabilities *caps, const HardwareInfo &hwInfo) override;
|
||||
|
||||
bool isL3Configurable(const HardwareInfo &hwInfo) override;
|
||||
|
||||
SipKernelType getSipKernelType(bool debuggingActive) const override;
|
||||
@@ -370,6 +369,10 @@ class HwHelperHw : public HwHelper {
|
||||
bool isScratchSpaceSurfaceStateAccessible() const override;
|
||||
uint64_t getRenderSurfaceStateBaseAddress(void *renderSurfaceState) const override;
|
||||
|
||||
size_t getMax3dImageWidthOrHeight() const override;
|
||||
uint64_t getMaxMemAllocSize() const override;
|
||||
bool isStatelesToStatefullWithOffsetSupported() const override;
|
||||
|
||||
protected:
|
||||
static const AuxTranslationMode defaultAuxTranslationMode;
|
||||
HwHelperHw() = default;
|
||||
|
||||
@@ -38,13 +38,20 @@ bool HwHelperHw<Family>::isBufferSizeSuitableForRenderCompression(const size_t s
|
||||
}
|
||||
|
||||
template <typename Family>
|
||||
void HwHelperHw<Family>::setupHardwareCapabilities(HardwareCapabilities *caps, const HardwareInfo &hwInfo) {
|
||||
caps->image3DMaxHeight = 16384;
|
||||
caps->image3DMaxWidth = 16384;
|
||||
size_t HwHelperHw<Family>::getMax3dImageWidthOrHeight() const {
|
||||
return 16384;
|
||||
}
|
||||
|
||||
template <typename Family>
|
||||
uint64_t HwHelperHw<Family>::getMaxMemAllocSize() const {
|
||||
//With statefull messages we have an allocation cap of 4GB
|
||||
//Reason to subtract 8KB is that driver may pad the buffer with addition pages for over fetching..
|
||||
caps->maxMemAllocSize = (4ULL * MemoryConstants::gigaByte) - (8ULL * MemoryConstants::kiloByte);
|
||||
caps->isStatelesToStatefullWithOffsetSupported = true;
|
||||
return (4ULL * MemoryConstants::gigaByte) - (8ULL * MemoryConstants::kiloByte);
|
||||
}
|
||||
|
||||
template <typename Family>
|
||||
bool HwHelperHw<Family>::isStatelesToStatefullWithOffsetSupported() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <typename Family>
|
||||
|
||||
@@ -68,13 +68,6 @@ struct RuntimeCapabilityTable {
|
||||
bool fusedEuEnabled;
|
||||
};
|
||||
|
||||
struct HardwareCapabilities {
|
||||
size_t image3DMaxWidth;
|
||||
size_t image3DMaxHeight;
|
||||
uint64_t maxMemAllocSize;
|
||||
bool isStatelesToStatefullWithOffsetSupported;
|
||||
};
|
||||
|
||||
struct HardwareInfo {
|
||||
HardwareInfo() = default;
|
||||
HardwareInfo(const PLATFORM *platform, const FeatureTable *featureTable, const WorkaroundTable *workaroundTable,
|
||||
|
||||
Reference in New Issue
Block a user