Files
compute-runtime/opencl/test/unit_test/command_stream/command_stream_fixture.h
kamdiedrich e8852a68c4 Reorganization directory structure [2/n]
Change-Id: I47962d17d755e80dcd9476e1ed75560f433f6115
2020-02-23 12:01:27 +01:00

33 lines
549 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "opencl/source/command_queue/command_queue.h"
#include <cstdint>
namespace NEO {
struct CommandStreamFixture {
CommandStreamFixture(void)
: pCS(nullptr),
pCmdBuffer(nullptr) {
}
void SetUp(CommandQueue *pCmdQ) {
pCS = &pCmdQ->getCS(1024);
pCmdBuffer = pCS->getCpuBase();
}
virtual void TearDown(void) {
}
LinearStream *pCS;
void *pCmdBuffer;
};
} // namespace NEO