mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
[2/n] Move Hardware Info to Execution Environment
- remove hwInfo from the csr functions where it was passed as a parameter, now csr functions have access to hwInfo by Execution Environment Change-Id: I756ae63d9728c9c963571147bab97f9e1c15797b Signed-off-by: Adam Stefanowski <adam.stefanowski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ca4b47f7f4
commit
16aee8cc46
@@ -1290,12 +1290,10 @@ typedef Test<PatchTokenFromBinaryTest> PatchTokenTests;
|
||||
|
||||
template <typename FamilyType>
|
||||
class CommandStreamReceiverMock : public UltCommandStreamReceiver<FamilyType> {
|
||||
typedef UltCommandStreamReceiver<FamilyType> BaseClass;
|
||||
using BaseClass = UltCommandStreamReceiver<FamilyType>;
|
||||
using BaseClass::BaseClass;
|
||||
|
||||
public:
|
||||
CommandStreamReceiverMock(ExecutionEnvironment &executionEnvironment) : BaseClass(*platformDevices[0], executionEnvironment) {
|
||||
}
|
||||
|
||||
void makeResident(GraphicsAllocation &graphicsAllocation) override {
|
||||
residency[graphicsAllocation.getUnderlyingBuffer()] = graphicsAllocation.getUnderlyingBufferSize();
|
||||
CommandStreamReceiver::makeResident(graphicsAllocation);
|
||||
|
||||
Reference in New Issue
Block a user