mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
28 lines
463 B
C++
28 lines
463 B
C++
/*
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "opencl/source/command_queue/command_queue.h"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace NEO {
|
|
|
|
struct CommandStreamFixture {
|
|
void setUp(CommandQueue *pCmdQ) {
|
|
pCS = &pCmdQ->getCS(1024);
|
|
pCmdBuffer = pCS->getCpuBase();
|
|
}
|
|
|
|
void tearDown() {
|
|
}
|
|
|
|
LinearStream *pCS = nullptr;
|
|
void *pCmdBuffer = nullptr;
|
|
};
|
|
} // namespace NEO
|