mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
32 lines
546 B
C++
32 lines
546 B
C++
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/command_queue/command_queue.h"
|
|
#include <cstdint>
|
|
|
|
namespace OCLRT {
|
|
|
|
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 OCLRT
|