Add xe_hp_sdv unit test target + minor test fixes

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-07-28 15:07:41 +00:00
committed by Compute-Runtime-Automation
parent 4b8e1671a5
commit 6f75d67406
18 changed files with 88 additions and 44 deletions

View File

@@ -95,6 +95,7 @@ class HwHelper {
virtual const StackVec<uint32_t, 6> getThreadsPerEUConfigs() const = 0;
virtual bool getEnableLocalMemory(const HardwareInfo &hwInfo) const = 0;
virtual std::string getExtensions() const = 0;
virtual std::string getDeviceMemoryName() const = 0;
static uint32_t getMaxThreadsForVfe(const HardwareInfo &hwInfo);
virtual uint32_t getMetricsLibraryGenId() const = 0;
virtual uint32_t getMocsIndex(const GmmHelper &gmmHelper, bool l3enabled, bool l1enabled) const = 0;
@@ -273,6 +274,8 @@ class HwHelperHw : public HwHelper {
std::string getExtensions() const override;
std::string getDeviceMemoryName() const override;
uint32_t getMetricsLibraryGenId() const override;
uint32_t getMocsIndex(const GmmHelper &gmmHelper, bool l3enabled, bool l1enabled) const override;

View File

@@ -139,4 +139,9 @@ bool HwHelperHw<GfxFamily>::additionalPipeControlArgsRequired() const {
return false;
}
template <typename GfxFamily>
std::string HwHelperHw<GfxFamily>::getDeviceMemoryName() const {
return "DDR";
}
} // namespace NEO

View File

@@ -193,4 +193,9 @@ inline bool HwHelperHw<GfxFamily>::preferSmallWorkgroupSizeForKernel(const size_
return true;
}
template <typename GfxFamily>
std::string HwHelperHw<GfxFamily>::getDeviceMemoryName() const {
return "HBM";
}
} // namespace NEO

View File

@@ -8,13 +8,16 @@
#include "shared/source/os_interface/linux/drm_engine_mapper.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/engine_node_helper.h"
#include "drm/i915_drm.h"
namespace NEO {
unsigned int DrmEngineMapper::engineNodeMap(aub_stream::EngineType engineType) {
if (aub_stream::ENGINE_RCS == engineType) {
if (EngineHelpers::isCcs(engineType)) {
return I915_EXEC_DEFAULT;
} else if (aub_stream::ENGINE_RCS == engineType) {
return I915_EXEC_RENDER;
} else if (aub_stream::ENGINE_BCS == engineType) {
return I915_EXEC_BLT;

View File

@@ -15,7 +15,7 @@ namespace NEO {
using BcsInfoMask = std::bitset<1>;
struct FeatureTable : FeatureTableBase {
BcsInfoMask ftrBcsInfo = 0;
BcsInfoMask ftrBcsInfo = 1;
};
struct WorkaroundTable : WorkaroundTableBase {};