Pass alignment to Gmm

Related-To: NEO-5750

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2021-04-12 14:34:35 +00:00
committed by Compute-Runtime-Automation
parent a3e86f949c
commit 5f9dbef401
28 changed files with 108 additions and 98 deletions

View File

@ -23,7 +23,7 @@ HWTEST_F(ReadWriteBufferCpuCopyTest, givenRenderCompressedGmmWhenAskingForCpuOpe
cl_int retVal;
auto rootDeviceIndex = context->getDevice(0)->getRootDeviceIndex();
std::unique_ptr<Buffer> buffer(Buffer::create(context, CL_MEM_READ_WRITE, 1, nullptr, retVal));
auto gmm = new Gmm(pDevice->getGmmClientContext(), nullptr, 1, false);
auto gmm = new Gmm(pDevice->getGmmClientContext(), nullptr, 1, 0, false);
gmm->isRenderCompressed = false;
auto allocation = buffer->getGraphicsAllocation(rootDeviceIndex);
allocation->setDefaultGmm(gmm);