mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
refactor: correct naming of allocation types
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
eac3d2130d
commit
b182917d9d
@@ -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:
|
||||
|
||||
@@ -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] = {};
|
||||
|
||||
Reference in New Issue
Block a user