Skip to content

Commit d56daf1

Browse files
pwilmaCompute-Runtime-Automation
authored andcommitted
Pass devicesBitField to gmm
Change-Id: Icad8a95d37d487fb7d01410c606baad67f681651
1 parent 0655045 commit d56daf1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

runtime/gmm_helper/gmm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
#include "runtime/helpers/surface_formats.h"
1717

1818
namespace OCLRT {
19-
Gmm::Gmm(const void *alignedPtr, size_t alignedSize, bool uncacheable) : Gmm(alignedPtr, alignedSize, uncacheable, false, true) {}
19+
Gmm::Gmm(const void *alignedPtr, size_t alignedSize, bool uncacheable) : Gmm(alignedPtr, alignedSize, uncacheable, false, true, 0) {}
2020

21-
Gmm::Gmm(const void *alignedPtr, size_t alignedSize, bool uncacheable, bool preferRenderCompressed, bool systemMemoryPool) {
21+
Gmm::Gmm(const void *alignedPtr, size_t alignedSize, bool uncacheable, bool preferRenderCompressed, bool systemMemoryPool, uint32_t devicesBitfield) {
2222
resourceParams.Type = RESOURCE_BUFFER;
2323
resourceParams.Format = GMM_FORMAT_GENERIC_8BIT;
2424
resourceParams.BaseWidth64 = static_cast<uint64_t>(alignedSize);

runtime/gmm_helper/gmm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018 Intel Corporation
2+
* Copyright (C) 2018-2019 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -24,7 +24,7 @@ class Gmm {
2424
Gmm() = delete;
2525
Gmm(ImageInfo &inputOutputImgInfo);
2626
Gmm(const void *alignedPtr, size_t alignedSize, bool uncacheable);
27-
Gmm(const void *alignedPtr, size_t alignedSize, bool uncacheable, bool preferRenderCompressed, bool systemMemoryPool);
27+
Gmm(const void *alignedPtr, size_t alignedSize, bool uncacheable, bool preferRenderCompressed, bool systemMemoryPool, uint32_t devicesBitfield);
2828
Gmm(GMM_RESOURCE_INFO *inputGmm);
2929

3030
void queryImageParams(ImageInfo &inputOutputImgInfo);

runtime/os_interface/windows/wddm_memory_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ GraphicsAllocation *WddmMemoryManager::allocateGraphicsMemory64kb(AllocationData
6464

6565
auto wddmAllocation = std::make_unique<WddmAllocation>(nullptr, sizeAligned, nullptr, MemoryPool::System64KBPages, getOsContextCount(), !!allocationData.flags.multiOsContextCapable);
6666

67-
gmm = new Gmm(nullptr, sizeAligned, false, allocationData.flags.preferRenderCompressed, true);
67+
gmm = new Gmm(nullptr, sizeAligned, false, allocationData.flags.preferRenderCompressed, true, 0);
6868
wddmAllocation->gmm = gmm;
6969

7070
if (!wddm->createAllocation64k(wddmAllocation.get())) {

unit_tests/mocks/mock_memory_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ GraphicsAllocation *MockMemoryManager::allocateGraphicsMemory64kb(AllocationData
5050

5151
auto allocation = OsAgnosticMemoryManager::allocateGraphicsMemory64kb(allocationData);
5252
if (allocation) {
53-
allocation->gmm = new Gmm(allocation->getUnderlyingBuffer(), allocationData.size, false, preferRenderCompressedFlagPassed, true);
53+
allocation->gmm = new Gmm(allocation->getUnderlyingBuffer(), allocationData.size, false, preferRenderCompressedFlagPassed, true, 0);
5454
allocation->gmm->isRenderCompressed = preferRenderCompressedFlagPassed;
5555
}
5656
return allocation;

0 commit comments

Comments
 (0)