refactor: correct naming of allocation types

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-12-11 14:24:36 +00:00
committed by Compute-Runtime-Automation
parent eac3d2130d
commit b182917d9d
302 changed files with 2536 additions and 2536 deletions

View File

@@ -13,10 +13,10 @@
namespace NEO {
bool CompressionSelector::preferCompressedAllocation(const AllocationProperties &properties) {
switch (properties.allocationType) {
case AllocationType::GLOBAL_SURFACE:
case AllocationType::CONSTANT_SURFACE:
case AllocationType::SVM_GPU:
case AllocationType::PRINTF_SURFACE: {
case AllocationType::globalSurface:
case AllocationType::constantSurface:
case AllocationType::svmGpu:
case AllocationType::printfSurface: {
return CompressionSelector::allowStatelessCompression();
}
default:

View File

@@ -59,7 +59,7 @@ void MigrationController::migrateMemory(Context &context, MemoryManager &memoryM
} else {
auto srcCmdQ = context.getSpecialQueue(sourceRootDeviceIndex);
if (srcMemory->getAllocationType() == AllocationType::IMAGE) {
if (srcMemory->getAllocationType() == AllocationType::image) {
auto pImage = static_cast<Image *>(memObj);
size_t origin[3] = {};
size_t region[3] = {};
@@ -80,7 +80,7 @@ void MigrationController::migrateMemory(Context &context, MemoryManager &memoryM
} else {
auto dstCmdQ = context.getSpecialQueue(targetRootDeviceIndex);
if (dstMemory->getAllocationType() == AllocationType::IMAGE) {
if (dstMemory->getAllocationType() == AllocationType::image) {
auto pImage = static_cast<Image *>(memObj);
size_t origin[3] = {};
size_t region[3] = {};