/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/direct_submission/direct_submission_hw.h" namespace NEO { template inline void DirectSubmissionHw::dispatchPrefetchMitigation() { uint32_t *prefetchNoop = static_cast(ringCommandStream.getSpace(prefetchSize)); size_t i = 0u; while (i < prefetchNoops) { *prefetchNoop = 0u; prefetchNoop++; i++; } } template inline size_t DirectSubmissionHw::getSizePrefetchMitigation() { return prefetchSize; } template inline size_t DirectSubmissionHw::getSizeDisablePrefetcher() { return 0u; } } // namespace NEO