mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
- Added support for creating and managing opaque IPC NT handles in the WDDM layer. - Introduced a new flag `shareableWithoutNTHandle` to indicate if memory can be shared without an NT handle. - Updated the `isShareableMemory` method to accommodate this new flag. - Added debug variable EnableShareableWithoutNTHandle to control the behavior of sharing memory without NT handles until requested. - Updated Linux path to enable sharing DMA Buf FDs between processes for use in pidfd_getfd - Updated getfd and get IPC Handle helper functions to support opaque or previous versions Related-To: NEO-15345 , NEO-15346 , NEO-15347, NEO-10380 Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
32 lines
825 B
C++
32 lines
825 B
C++
/*
|
|
* Copyright (C) 2021-2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/gen12lp/hw_cmds_dg1.h"
|
|
#include "shared/source/gen12lp/hw_info_dg1.h"
|
|
#include "shared/source/helpers/hw_info.h"
|
|
#include "shared/source/os_interface/product_helper_hw.h"
|
|
|
|
constexpr static auto gfxProduct = IGFX_DG1;
|
|
|
|
#include "shared/source/gen12lp/dg1/os_agnostic_product_helper_dg1.inl"
|
|
#include "shared/source/gen12lp/os_agnostic_product_helper_gen12lp.inl"
|
|
|
|
namespace NEO {
|
|
|
|
template <>
|
|
void ProductHelperHw<gfxProduct>::setCapabilityCoherencyFlag(const HardwareInfo &hwInfo, bool &coherencyFlag) const {
|
|
coherencyFlag = false;
|
|
}
|
|
|
|
template <>
|
|
bool ProductHelperHw<gfxProduct>::canShareMemoryWithoutNTHandle() const {
|
|
return false;
|
|
}
|
|
|
|
template class ProductHelperHw<gfxProduct>;
|
|
} // namespace NEO
|