mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
33 lines
543 B
C++
33 lines
543 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/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
|