mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
refactor: correct variable naming
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d25b3ebcdc
commit
b92b5892b8
@@ -649,44 +649,44 @@ uint64_t GfxCoreHelperHw<GfxFamily>::getPatIndex(CacheRegion cacheRegion, CacheP
|
||||
return -1;
|
||||
}
|
||||
|
||||
template <typename gfxProduct>
|
||||
bool GfxCoreHelperHw<gfxProduct>::copyThroughLockedPtrEnabled(const HardwareInfo &hwInfo, const ProductHelper &productHelper) const {
|
||||
template <typename GfxFamily>
|
||||
bool GfxCoreHelperHw<GfxFamily>::copyThroughLockedPtrEnabled(const HardwareInfo &hwInfo, const ProductHelper &productHelper) const {
|
||||
if (debugManager.flags.ExperimentalCopyThroughLock.get() != -1) {
|
||||
return debugManager.flags.ExperimentalCopyThroughLock.get() == 1;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename gfxProduct>
|
||||
uint32_t GfxCoreHelperHw<gfxProduct>::getAmountOfAllocationsToFill() const {
|
||||
template <typename GfxFamily>
|
||||
uint32_t GfxCoreHelperHw<GfxFamily>::getAmountOfAllocationsToFill() const {
|
||||
if (debugManager.flags.SetAmountOfReusableAllocations.get() != -1) {
|
||||
return debugManager.flags.SetAmountOfReusableAllocations.get();
|
||||
}
|
||||
return 0u;
|
||||
}
|
||||
|
||||
template <typename gfxProduct>
|
||||
bool GfxCoreHelperHw<gfxProduct>::isChipsetUniqueUUIDSupported() const {
|
||||
template <typename GfxFamily>
|
||||
bool GfxCoreHelperHw<GfxFamily>::isChipsetUniqueUUIDSupported() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename gfxProduct>
|
||||
bool GfxCoreHelperHw<gfxProduct>::largeGrfModeSupported() const {
|
||||
template <typename GfxFamily>
|
||||
bool GfxCoreHelperHw<GfxFamily>::largeGrfModeSupported() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename gfxProduct>
|
||||
bool GfxCoreHelperHw<gfxProduct>::isTimestampShiftRequired() const {
|
||||
template <typename GfxFamily>
|
||||
bool GfxCoreHelperHw<GfxFamily>::isTimestampShiftRequired() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <typename gfxProduct>
|
||||
bool GfxCoreHelperHw<gfxProduct>::isRelaxedOrderingSupported() const {
|
||||
template <typename GfxFamily>
|
||||
bool GfxCoreHelperHw<GfxFamily>::isRelaxedOrderingSupported() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename gfxProduct>
|
||||
uint32_t GfxCoreHelperHw<gfxProduct>::overrideMaxWorkGroupSize(uint32_t maxWG) const {
|
||||
template <typename GfxFamily>
|
||||
uint32_t GfxCoreHelperHw<GfxFamily>::overrideMaxWorkGroupSize(uint32_t maxWG) const {
|
||||
return std::min(maxWG, 1024u);
|
||||
}
|
||||
|
||||
|
||||
@@ -14,16 +14,16 @@ namespace NEO {
|
||||
namespace HwWalkOrderHelper {
|
||||
// make sure table below matches Hardware Spec
|
||||
inline constexpr uint32_t walkOrderPossibilties = 6u;
|
||||
inline constexpr uint8_t X = 0;
|
||||
inline constexpr uint8_t Y = 1;
|
||||
inline constexpr uint8_t Z = 2;
|
||||
inline constexpr std::array<uint8_t, 3> linearWalk = {X, Y, Z};
|
||||
inline constexpr std::array<uint8_t, 3> yOrderWalk = {Y, X, Z};
|
||||
inline constexpr uint8_t x = 0;
|
||||
inline constexpr uint8_t y = 1;
|
||||
inline constexpr uint8_t z = 2;
|
||||
inline constexpr std::array<uint8_t, 3> linearWalk = {x, y, z};
|
||||
inline constexpr std::array<uint8_t, 3> yOrderWalk = {y, x, z};
|
||||
inline constexpr std::array<uint8_t, 3> compatibleDimensionOrders[walkOrderPossibilties] = {linearWalk, // 0 1 2
|
||||
{X, Z, Y}, // 0 2 1
|
||||
{x, z, y}, // 0 2 1
|
||||
yOrderWalk, // 1 0 2
|
||||
{Z, X, Y}, // 1 2 0
|
||||
{Y, Z, X}, // 2 0 1
|
||||
{Z, Y, X}}; // 2 1 0
|
||||
{z, x, y}, // 1 2 0
|
||||
{y, z, x}, // 2 0 1
|
||||
{z, y, x}}; // 2 1 0
|
||||
} // namespace HwWalkOrderHelper
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user