mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Pass GmmClientContext to Gmm and GmmResourceInfo
Related-To: NEO-3007 Change-Id: Ia590670e93ed93b0941d5a5dc6ac010268cb561e Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
350eb83f02
commit
10d274daa9
@@ -17,7 +17,7 @@ typedef EnqueueReadBufferTypeTest ReadWriteBufferCpuCopyTest;
|
||||
HWTEST_F(ReadWriteBufferCpuCopyTest, givenRenderCompressedGmmWhenAskingForCpuOperationThenDisallow) {
|
||||
cl_int retVal;
|
||||
std::unique_ptr<Buffer> buffer(Buffer::create(context, CL_MEM_READ_WRITE, 1, nullptr, retVal));
|
||||
auto gmm = new Gmm(nullptr, 1, false);
|
||||
auto gmm = new Gmm(pDevice->getExecutionEnvironment()->getGmmClientContext(), nullptr, 1, false);
|
||||
gmm->isRenderCompressed = false;
|
||||
buffer->getGraphicsAllocation()->setDefaultGmm(gmm);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user