Create HardwareContext only when osContext is available

Change-Id: I8bcf2cb20f0e1e6b9da98b477f5be206407a7a57
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-01-10 09:37:56 +01:00
parent c38ba275d6
commit 8ae7de7b0e
26 changed files with 92 additions and 67 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Intel Corporation
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -27,7 +27,7 @@ class CommandStreamReceiverWithAUBDump : public BaseCSR {
void makeNonResident(GraphicsAllocation &gfxAllocation) override;
void activateAubSubCapture(const MultiDispatchInfo &dispatchInfo) override;
void setOsContext(OsContext &osContext) override;
void setupContext(OsContext &osContext) override;
CommandStreamReceiver *aubCSR = nullptr;
};