Add notify enable parameter to post sync commands

Related-To: NEO-5845

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2021-06-17 11:55:28 +00:00
committed by Compute-Runtime-Automation
parent a1036ecc75
commit 0e5ca243e2
26 changed files with 196 additions and 46 deletions

View File

@@ -22,16 +22,18 @@ class DrmMemoryManager;
template <typename GfxFamily>
class DrmCommandStreamReceiver : public DeviceCommandStreamReceiver<GfxFamily> {
protected:
typedef DeviceCommandStreamReceiver<GfxFamily> BaseClass;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::getTagAddress;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::getTagAllocation;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::taskCount;
using BaseClass = DeviceCommandStreamReceiver<GfxFamily>;
using BaseClass::getScratchPatchAddress;
using BaseClass::makeNonResident;
using BaseClass::makeResident;
using BaseClass::mediaVfeStateDirty;
using BaseClass::osContext;
using BaseClass::requiredScratchSize;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::getTagAddress;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::getTagAllocation;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::taskCount;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::useNotifyEnableForPostSync;
public:
// When drm is null default implementation is used. In this case DrmCommandStreamReceiver is responsible to free drm.

View File

@@ -60,6 +60,7 @@ DrmCommandStreamReceiver<GfxFamily>::DrmCommandStreamReceiver(ExecutionEnvironme
if (overrideUserFenceUseCtxId != -1) {
useContextForUserFenceWait = !!(overrideUserFenceUseCtxId);
}
useNotifyEnableForPostSync = useUserFenceWait;
}
template <typename GfxFamily>