mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Use compile guard when setting gmm arg FileDescriptor
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b25c345d6a
commit
7b2c09eec9
@@ -738,7 +738,9 @@ ADAPTER_BDF Drm::getAdapterBDF() const {
|
||||
void Drm::setGmmInputArgs(void *args) {
|
||||
auto gmmInArgs = reinterpret_cast<GMM_INIT_IN_ARGS *>(args);
|
||||
auto adapterBDF = this->getAdapterBDF();
|
||||
#if defined(__linux__)
|
||||
gmmInArgs->FileDescriptor = adapterBDF.Data;
|
||||
#endif
|
||||
gmmInArgs->ClientType = GMM_CLIENT::GMM_OCL_VISTA;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user