mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
Add selectCsrForBuiltinOperation method to OpenCL CommandQueue
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com> Related-To: NEO-6057
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
03ee6bc2dd
commit
858727010f
@@ -20,12 +20,15 @@ struct MockImageBase : public Image {
|
||||
using Image::imageFormat;
|
||||
MockGraphicsAllocation *graphicsAllocation = nullptr;
|
||||
|
||||
MockImageBase() : Image(
|
||||
nullptr, MemoryProperties(), cl_mem_flags{}, 0, 0, nullptr, nullptr, cl_image_format{},
|
||||
cl_image_desc{}, false, GraphicsAllocationHelper::toMultiGraphicsAllocation(new MockGraphicsAllocation(nullptr, 0)), false,
|
||||
0, 0, ClSurfaceFormatInfo{}, nullptr),
|
||||
graphicsAllocation(static_cast<MockGraphicsAllocation *>(multiGraphicsAllocation.getGraphicsAllocation(0))) {
|
||||
MockImageBase(uint32_t rootDeviceIndex)
|
||||
: Image(nullptr, MemoryProperties(), cl_mem_flags{}, 0, 0, nullptr, nullptr, cl_image_format{},
|
||||
cl_image_desc{}, false, GraphicsAllocationHelper::toMultiGraphicsAllocation(new MockGraphicsAllocation(rootDeviceIndex, nullptr, 0)), false,
|
||||
0, 0, ClSurfaceFormatInfo{}, nullptr),
|
||||
graphicsAllocation(static_cast<MockGraphicsAllocation *>(multiGraphicsAllocation.getGraphicsAllocation(rootDeviceIndex))) {
|
||||
}
|
||||
|
||||
MockImageBase() : MockImageBase(0u) {}
|
||||
|
||||
~MockImageBase() override {
|
||||
delete this->graphicsAllocation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user