mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add kernel algorithm to check any argument is using system memory
Related-To: NEO-6959 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
5a3a39a281
commit
e07f9f0698
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@ -28,11 +28,13 @@ class MediaImageSetArgTest : public ClDeviceFixture,
|
||||
protected:
|
||||
void SetUp() override {
|
||||
ClDeviceFixture::SetUp();
|
||||
context = new MockContext(pClDevice);
|
||||
|
||||
pKernelInfo = std::make_unique<MockKernelInfo>();
|
||||
pKernelInfo->kernelDescriptor.kernelAttributes.simdSize = 1;
|
||||
|
||||
program = std::make_unique<MockProgram>(toClDeviceVector(*pClDevice));
|
||||
program->setContext(context);
|
||||
|
||||
pKernelInfo->heapInfo.SurfaceStateHeapSize = sizeof(surfaceStateHeap);
|
||||
pKernelInfo->heapInfo.pSsh = surfaceStateHeap;
|
||||
@ -51,7 +53,7 @@ class MediaImageSetArgTest : public ClDeviceFixture,
|
||||
|
||||
pKernel->setKernelArgHandler(0, &Kernel::setArgImage);
|
||||
pKernel->setKernelArgHandler(1, &Kernel::setArgImage);
|
||||
context = new MockContext(pClDevice);
|
||||
|
||||
srcImage = Image2dHelper<>::create(context);
|
||||
ASSERT_NE(nullptr, srcImage);
|
||||
}
|
||||
|
Reference in New Issue
Block a user