mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Pass alignment to Gmm
Related-To: NEO-5750 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
a3e86f949c
commit
5f9dbef401
@ -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);
|
||||
|
Reference in New Issue
Block a user