2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2020-02-23 05:21:06 +08:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-23 22:20:22 +08:00
|
|
|
#include "opencl/test/unit_test/fixtures/buffer_fixture.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2020-02-23 22:20:22 +08:00
|
|
|
#include "opencl/test/unit_test/mocks/mock_context.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using NEO::Context;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2018-06-13 03:54:39 +08:00
|
|
|
// clang-format off
|
2017-12-21 07:45:38 +08:00
|
|
|
static char bufferMemory[] = {
|
|
|
|
0x00, 0x10, 0x20, 0x30,
|
|
|
|
0x01, 0x11, 0x21, 0x31,
|
|
|
|
0x02, 0x12, 0x22, 0x32,
|
|
|
|
0x03, 0x13, 0x23, 0x33,
|
|
|
|
};
|
2018-06-13 03:54:39 +08:00
|
|
|
// clang-format on
|
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
void *BufferDefaults::hostPtr = bufferMemory;
|
|
|
|
const size_t BufferDefaults::sizeInBytes = sizeof(bufferMemory);
|
|
|
|
Context *BufferDefaults::context = nullptr;
|