mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:39:51 +08:00
Interface to query number of samplers
Change-Id: I78fac48e916d7a71f385a4b28b1d56e10ede0beb Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
aa957370da
commit
f019d6ae8b
@@ -91,7 +91,7 @@ void Device::initializeCaps() {
|
||||
deviceInfo.maxWorkItemSizes[0] = deviceInfo.maxWorkGroupSize;
|
||||
deviceInfo.maxWorkItemSizes[1] = deviceInfo.maxWorkGroupSize;
|
||||
deviceInfo.maxWorkItemSizes[2] = deviceInfo.maxWorkGroupSize;
|
||||
deviceInfo.maxSamplers = 16;
|
||||
deviceInfo.maxSamplers = hwHelper.getMaxNumSamplers();
|
||||
|
||||
deviceInfo.computeUnitsUsedForScratch = hwHelper.getComputeUnitsUsedForScratch(&hwInfo);
|
||||
deviceInfo.maxFrontEndThreads = HwHelper::getMaxThreadsForVfe(hwInfo);
|
||||
|
||||
@@ -37,6 +37,7 @@ class HwHelper {
|
||||
virtual size_t getMaxBarrierRegisterPerSlice() const = 0;
|
||||
virtual uint32_t getComputeUnitsUsedForScratch(const HardwareInfo *pHwInfo) const = 0;
|
||||
virtual uint32_t getPitchAlignmentForImage(const HardwareInfo *hwInfo) = 0;
|
||||
virtual uint32_t getMaxNumSamplers() const = 0;
|
||||
virtual void setCapabilityCoherencyFlag(const HardwareInfo *pHwInfo, bool &coherencyFlag) = 0;
|
||||
virtual void adjustDefaultEngineType(HardwareInfo *pHwInfo) = 0;
|
||||
virtual void setupHardwareCapabilities(HardwareCapabilities *caps, const HardwareInfo &hwInfo) = 0;
|
||||
@@ -142,6 +143,8 @@ class HwHelperHw : public HwHelper {
|
||||
|
||||
uint32_t getPitchAlignmentForImage(const HardwareInfo *hwInfo) override;
|
||||
|
||||
uint32_t getMaxNumSamplers() const override;
|
||||
|
||||
void setCapabilityCoherencyFlag(const HardwareInfo *pHwInfo, bool &coherencyFlag) override;
|
||||
|
||||
void adjustDefaultEngineType(HardwareInfo *pHwInfo) override;
|
||||
|
||||
@@ -66,6 +66,11 @@ uint32_t HwHelperHw<Family>::getPitchAlignmentForImage(const HardwareInfo *hwInf
|
||||
return 4u;
|
||||
}
|
||||
|
||||
template <typename Family>
|
||||
uint32_t HwHelperHw<Family>::getMaxNumSamplers() const {
|
||||
return 16;
|
||||
}
|
||||
|
||||
template <typename Family>
|
||||
const AubMemDump::LrcaHelper &HwHelperHw<Family>::getCsTraits(aub_stream::EngineType engineType) const {
|
||||
return *AUBFamilyMapper<Family>::csTraits[engineType];
|
||||
|
||||
Reference in New Issue
Block a user