ADL (AMD Display Library) Public APIs  Version 17.1
Macros | Functions
displaysmanager.h File Reference

Copyright (c) 2008 - 2022 Advanced Micro Devices, Inc. More...

#include "adl_structures.h"

Go to the source code of this file.

Macros

#define ADL_EXTERNC
 

Functions

int ADL2_Adapter_AMDAndNonAMDDIsplayClone_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpHasAMDAndNonAMDDIsplays)
 ADL local interface. Retrieves GPU information of any AMD and non-AMD displays cloned for given GPU or all OS-known GPUs. More...
 
int ADL2_Adapter_CloneTypes_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpCloneTypes)
 ADL local interface. Retrieves GPU information of special clone types for given GPU or all OS-known GPUs. More...
 
int ADL2_Adapter_CrossGPUClone_Disable (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iOptions)
 ADL local interface. Disable all cross-GPU clone for given GPU or all OS-known GPUs. More...
 
int ADL2_Adapter_Desktop_Caps (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpDesktopCapsValue, int *lpDesktopCapsMask)
 
int ADL2_Adapter_Desktop_SupportedSLSGridTypes_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iNumOfAvailableDisplays, ADLDisplayTarget *lpAvailableDisplays, int *lpNumSLSGrid, ADLSLSGrid **lppSLSGrid, int iOption)
 
int ADL2_Adapter_Display_Caps (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumDisplayCaps, ADLAdapterDisplayCap **lppAdapterDisplayCaps)
 Function to retrieve the adapter display manner capabilities based on ADL index. More...
 
int ADL2_Adapter_NumberOfActivatableSources_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumSources, ADLActivatableSource **lppSources)
 Function to retrieve the number of Activatable sources based on ADL Index. More...
 
int ADL2_Display_BezelOffset_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iSLSMapIndex, int iNumBezelOffset, LPADLSLSOffset lpBezelOffset, ADLSLSMap SLSMap, int iOption)
 Set SLS bezel offsets for each display index. More...
 
int ADL2_Display_BezelOffsetSteppingSize_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumBezelOffsetSteppingSize, ADLBezelOffsetSteppingSize **lppBezelOffsetSteppingSize)
 Get bezel offset stepping size for the input adapter. More...
 
int ADL2_Display_BezelSupported_Validate (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iNumPossibleSLSMap, LPADLPossibleSLSMap lpPossibleSLSMaps, int *lpNumPossibleSLSMapResult, LPADLPossibleMapResult *lppPossibleMapResult)
 Validate the list of the SLS display configurations to determine if bezel is supported or not. More...
 
int ADL2_Display_DisplayMapConfig_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumDisplayMap, ADLDisplayMap **lppDisplayMap, int *lpNumDisplayTarget, ADLDisplayTarget **lppDisplayTarget, int iOptions)
 Function to retrieve current display map configurations. More...
 
int ADL2_Display_DisplayMapConfig_PossibleAddAndRemove (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iNumDisplayMap, ADLDisplayMap *lpDisplayMap, int iNumDisplayTarget, ADLDisplayTarget *lpDisplayTarget, int *lpNumPossibleAddTarget, ADLDisplayTarget **lppPossibleAddTarget, int *lpNumPossibleRemoveTarget, ADLDisplayTarget **lppPossibleRemoveTarget)
 Function to validate a list of display configurations. More...
 
int ADL2_Display_DisplayMapConfig_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iNumDisplayMap, ADLDisplayMap *lpDisplayMap, int iNumDisplayTarget, ADLDisplayTarget *lpDisplayTarget)
 Function to set the current display configuration. More...
 
int ADL2_Display_DisplayMapConfig_Validate (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iNumPossibleMap, ADLPossibleMap *lpPossibleMaps, int *lpNumPossibleMapResult, ADLPossibleMapResult **lppPossibleMapResult)
 Function to validate the list of the display configurations based on ADL Index. More...
 
int ADL2_Display_ForcibleDisplay_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpStatus)
 Function to retrieve the forcible connected status of a display. More...
 
int ADL2_Display_ForcibleDisplay_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iStatus)
 Function to set the forcible connected status of a display. More...
 
int ADL2_Display_Modes_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpNumModes, ADLMode **lppModes)
 Function to retrieve the display mode information. More...
 
int ADL2_Display_Modes_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iNumModes, ADLMode *lpModes)
 Function to set display mode information. More...
 
int ADL2_Display_Overlap_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iSLSMapIndex, int iNumOverlappedModes, LPADLSLSTargetOverlap lpOverlappedModes, int iNumTargetOffsets, LPADLSLSOffset lpTargetOffsets, ADLSLSMap SLSMap)
 Set SLS overlap offsets for each display index. More...
 
int ADL2_Display_PossibleMapping_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iNumberOfPresetMapping, ADLPossibleMapping *lpPresetMappings, int iEnquiryControllerIndex, int *lpNumberOfEnquiryPossibleMappings, ADLPossibleMapping **lppEnquiryPossibleMappings)
 Function to retrieve the possible display mappings. More...
 
int ADL2_Display_PossibleMode_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumModes, ADLMode **lppModes)
 Function to retrieve the OS possible modes list for an adapter (all OS platforms). More...
 
int ADL2_Display_PossibleMode_WinXP_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iNumDisplayTargets, ADLDisplayTarget *lpDisplayTargets, int iLargeDesktopSupportedType, int iDevicePanningControl, int *lpNumModes, ADLMode **lppModes)
 Function to retrieve the ATI possible modes list for an adapter and preset mapping (Windows XP). More...
 
int ADL2_Display_SLSBuilder_CommonMode_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iNumDisplayTarget, ADLSLSTarget *lpSLSTarget, int *lpTotalWidth, int *lpTotalHeight)
 
int ADL2_Display_SLSGrid_Caps (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumSLSGrid, ADLSLSGrid **lppSLSGrid, int iOption)
 
int ADL2_Display_SLSMapConfig_Create (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLSLSMap SLSMap, int iNumTarget, ADLSLSTarget *lpSLSTarget, int iBezelModePercent, int *lpSLSMapIndex, int iOption)
 Function to create an SLS configuration. More...
 
int ADL2_Display_SLSMapConfig_Delete (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iSLSMapIndex)
 Function to delete an SLS map from the driver database. More...
 
int ADL2_Display_SLSMapConfig_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iSLSMapIndex, ADLSLSMap *lpSLSMap, int *lpNumSLSTarget, ADLSLSTarget **lppSLSTarget, int *lpNumNativeMode, ADLSLSMode **lppNativeMode, int *lpNumBezelMode, ADLBezelTransientMode **lppBezelMode, int *lpNumTransientMode, ADLBezelTransientMode **lppTransientMode, int *lpNumSLSOffset, ADLSLSOffset **lppSLSOffset, int iOption)
 Function to retrieve an SLS configuration. More...
 
int ADL2_Display_SLSMapConfig_Rearrange (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iSLSMapIndex, int iNumDisplayTarget, ADLSLSTarget *lpSLSTarget, ADLSLSMap slsMap, int iOption)
 Function to rearrange display orders in an SLS map. More...
 
int ADL2_Display_SLSMapConfig_SetState (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iSLSMapIndex, int iState)
 Function to enable/disable SLS bind. More...
 
int ADL2_Display_SLSMapConfig_Valid (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLSLSMap slsMap, int iNumDisplayTarget, ADLSLSTarget *lpSLSTarget, int *lpSupportedSLSLayoutImageMode, int *lpReasonForNotSupportSLS, int iOption)
 
int ADL2_Display_SLSMapConfigX2_Delete (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iNumSLSMapIndex, int *lpSLSMapIndexes)
 Function to delete an list of SLS map indexes from the driver database. More...
 
int ADL2_Display_SLSMapConfigX2_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iSLSMapIndex, ADLSLSMap *lpSLSMap, int *lpNumSLSTarget, ADLSLSTarget **lppSLSTarget, int *lpNumNativeMode, ADLSLSMode **lppNativeMode, int *lpNumNativeModeOffsets, ADLSLSOffset **lppNativeModeOffsets, int *lpNumBezelMode, ADLBezelTransientMode **lppBezelMode, int *lpNumTransientMode, ADLBezelTransientMode **lppTransientMode, int *lpNumSLSOffset, ADLSLSOffset **lppSLSOffset, int iOption)
 Function to retrieve an SLS configuration. More...
 
int ADL2_Display_SLSMapIndex_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iADLNumDisplayTarget, ADLDisplayTarget *lpDisplayTarget, int *lpSLSMapIndex)
 Function to get the SLS map index for a given adapter and a given display device. More...
 
int ADL2_Display_SLSMapIndexList_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumSLSMapIndexList, int **lppSLSMapIndexList, int iOptions)
 Function to get the active SLS map index list for a given GPU. More...
 
int ADL2_Display_SLSMiddleMode_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iSLSMapIndex, int *lpMiddleModeSupported, int *lpMaxNumMiddleModeToSet, int *lpNumAvailableSLSMiddleMode, ADLSLSMode **lppAvailableSLSMiddleMode, int *lpNumCurrentSLSMiddleMode, ADLSLSMode **lppCurrentSLSMiddleMode, int *lpNumDefaultSLSMiddleMode, ADLSLSMode **lppDefaultSLSMiddleMode, int iOption)
 Get SLS middle mode for specific adapter. More...
 
int ADL2_Display_SLSMiddleMode_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iSLSMapIndex, int iNumCurrentSLSMiddleMode, ADLSLSMode *lpCurrentSLSMiddleMode, int iOption)
 Set SLS middle mode for specific adapter. More...
 
int ADL2_Display_SLSRecords_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLDisplayID displayID, int *lpNumOfRecords, int **lppGridIDList)
 Function to Get an SLS records from the driver database. More...
 
int ADL2_MGPUSLS_Status_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iStatus)
 
int ADL2_Workstation_EnableUnsupportedDisplayModes (ADL_CONTEXT_HANDLE context, int iAdapterIndex)
 Function to set the Registry key "UnsupportedMonitorModesAllowed" when 10bit Pixel format is enabled from workstation aspect. More...
 
int ADL_Adapter_Display_Caps (int iAdapterIndex, int *lpNumDisplayCaps, ADLAdapterDisplayCap **lppAdapterDisplayCaps)
 Function to retrieve the adapter display manner capabilities based on ADL index. More...
 
int ADL_Adapter_NumberOfActivatableSources_Get (int iAdapterIndex, int *lpNumSources, ADLActivatableSource **lppSources)
 Function to retrieve the number of Activatable sources based on ADL Index. More...
 
int ADL_Display_BezelOffset_Set (int iAdapterIndex, int iSLSMapIndex, int iNumBezelOffset, LPADLSLSOffset lpBezelOffset, ADLSLSMap SLSMap, int iOption)
 Set SLS bezel offsets for each display index. More...
 
int ADL_Display_BezelOffsetSteppingSize_Get (int iAdapterIndex, int *lpNumBezelOffsetSteppingSize, ADLBezelOffsetSteppingSize **lppBezelOffsetSteppingSize)
 Get bezel offset stepping size for the input adapter. More...
 
int ADL_Display_BezelSupported_Validate (int iAdapterIndex, int iNumPossibleSLSMap, LPADLPossibleSLSMap lpPossibleSLSMaps, int *lpNumPossibleSLSMapResult, LPADLPossibleMapResult *lppPossibleMapResult)
 Validate the list of the SLS display configurations to determine if bezel is supported or not. More...
 
int ADL_Display_DisplayMapConfig_Get (int iAdapterIndex, int *lpNumDisplayMap, ADLDisplayMap **lppDisplayMap, int *lpNumDisplayTarget, ADLDisplayTarget **lppDisplayTarget, int iOptions)
 Function to retrieve current display map configurations. More...
 
int ADL_Display_DisplayMapConfig_PossibleAddAndRemove (int iAdapterIndex, int iNumDisplayMap, ADLDisplayMap *lpDisplayMap, int iNumDisplayTarget, ADLDisplayTarget *lpDisplayTarget, int *lpNumPossibleAddTarget, ADLDisplayTarget **lppPossibleAddTarget, int *lpNumPossibleRemoveTarget, ADLDisplayTarget **lppPossibleRemoveTarget)
 Function to validate a list of display configurations. More...
 
int ADL_Display_DisplayMapConfig_Set (int iAdapterIndex, int iNumDisplayMap, ADLDisplayMap *lpDisplayMap, int iNumDisplayTarget, ADLDisplayTarget *lpDisplayTarget)
 Function to set the current display configuration. More...
 
int ADL_Display_DisplayMapConfig_Validate (int iAdapterIndex, int iNumPossibleMap, ADLPossibleMap *lpPossibleMaps, int *lpNumPossibleMapResult, ADLPossibleMapResult **lppPossibleMapResult)
 Function to validate the list of the display configurations based on ADL Index. More...
 
int ADL_Display_ForcibleDisplay_Get (int iAdapterIndex, int iDisplayIndex, int *lpStatus)
 Function to retrieve the forcible connected status of a display. More...
 
int ADL_Display_ForcibleDisplay_Set (int iAdapterIndex, int iDisplayIndex, int iStatus)
 Function to set the forcible connected status of a display. More...
 
int ADL_Display_Modes_Get (int iAdapterIndex, int iDisplayIndex, int *lpNumModes, ADLMode **lppModes)
 Function to retrieve the display mode information. More...
 
int ADL_Display_Modes_Set (int iAdapterIndex, int iDisplayIndex, int iNumModes, ADLMode *lpModes)
 Function to set display mode information. More...
 
int ADL_Display_Overlap_Set (int iAdapterIndex, int iSLSMapIndex, int iNumOverlappedModes, LPADLSLSTargetOverlap lpOverlappedModes, int iNumTargetOffsets, LPADLSLSOffset lpTargetOffsets, ADLSLSMap SLSMap)
 Set SLS overlap offsets for each display index. More...
 
int ADL_Display_PossibleMapping_Get (int iAdapterIndex, int iNumberOfPresetMapping, ADLPossibleMapping *lpPresetMappings, int iEnquiryControllerIndex, int *lpNumberOfEnquiryPossibleMappings, ADLPossibleMapping **lppEnquiryPossibleMappings)
 Function to retrieve the possible display mappings. More...
 
int ADL_Display_PossibleMode_Get (int iAdapterIndex, int *lpNumModes, ADLMode **lppModes)
 Function to retrieve the OS possible modes list for an adapter (all OS platforms). More...
 
int ADL_Display_PossibleMode_WinXP_Get (int iAdapterIndex, int iNumDisplayTargets, ADLDisplayTarget *lpDisplayTargets, int iLargeDesktopSupportedType, int iDevicePanningControl, int *lpNumModes, ADLMode **lppModes)
 Function to retrieve the ATI possible modes list for an adapter and preset mapping (Windows XP). More...
 
int ADL_Display_SLSGrid_Caps (int iAdapterIndex, int *lpNumSLSGrid, ADLSLSGrid **lppSLSGrid, int iOption)
 Function to get the current supported SLS grid patterns (MxN) for a GPU. More...
 
int ADL_Display_SLSMapConfig_Create (int iAdapterIndex, ADLSLSMap SLSMap, int iNumTargetTarget, ADLSLSTarget *lpSLSTarget, int iBezelModePercent, int *lpSLSMapIndex, int iOption)
 Function to create an SLS configuration. More...
 
int ADL_Display_SLSMapConfig_Delete (int iAdapterIndex, int iSLSMapIndex)
 Function to delete an SLS map from the driver database. More...
 
int ADL_Display_SLSMapConfig_Get (int iAdapterIndex, int iSLSMapIndex, ADLSLSMap *lpSLSMap, int *lpNumSLSTarget, ADLSLSTarget **lppSLSTarget, int *lpNumNativeMode, ADLSLSMode **lppNativeMode, int *lpNumBezelMode, ADLBezelTransientMode **lppBezelMode, int *lpNumTransientMode, ADLBezelTransientMode **lppTransientMode, int *lpNumSLSOffset, ADLSLSOffset **lppSLSOffset, int iOption)
 Function to retrieve an SLS configuration. More...
 
int ADL_Display_SLSMapConfig_Rearrange (int iAdapterIndex, int iSLSMapIndex, int iNumDisplayTarget, ADLSLSTarget *lpSLSTarget, ADLSLSMap slsMap, int iOption)
 Function to rearrange display orders in an SLS map. More...
 
int ADL_Display_SLSMapConfig_SetState (int iAdapterIndex, int iSLSMapIndex, int iState)
 Function to enable/disable SLS bind. More...
 
int ADL_Display_SLSMapConfigX2_Get (int iAdapterIndex, int iSLSMapIndex, ADLSLSMap *lpSLSMap, int *lpNumSLSTarget, ADLSLSTarget **lppSLSTarget, int *lpNumNativeMode, ADLSLSMode **lppNativeMode, int *lpNumNativeModeOffsets, ADLSLSOffset **lppNativeModeOffsets, int *lpNumBezelMode, ADLBezelTransientMode **lppBezelMode, int *lpNumTransientMode, ADLBezelTransientMode **lppTransientMode, int *lpNumSLSOffset, ADLSLSOffset **lppSLSOffset, int iOption)
 Function to retrieve an SLS configuration. More...
 
int ADL_Display_SLSMapIndex_Get (int iAdapterIndex, int iADLNumDisplayTarget, ADLDisplayTarget *lpDisplayTarget, int *lpSLSMapIndex)
 Function to get the SLS map index for a given adapter and a given display device. More...
 
int ADL_Display_SLSMapIndexList_Get (int iAdapterIndex, int *lpNumSLSMapIndexList, int **lppSLSMapIndexList, int iOptions)
 Function to get the active SLS map index list for a given GPU. More...
 
int ADL_Display_SLSMiddleMode_Get (int iAdapterIndex, int iSLSMapIndex, int *lpMiddleModeSupported, int *lpMaxNumMiddleModeToSet, int *lpNumAvailableSLSMiddleMode, ADLSLSMode **lppAvailableSLSMiddleMode, int *lpNumCurrentSLSMiddleMode, ADLSLSMode **lppCurrentSLSMiddleMode, int *lpNumDefaultSLSMiddleMode, ADLSLSMode **lppDefaultSLSMiddleMode, int iOption)
 Get SLS middle mode for specific adapter. More...
 
int ADL_Display_SLSMiddleMode_Set (int iAdapterIndex, int iSLSMapIndex, int iNumCurrentSLSMiddleMode, ADLSLSMode *lpCurrentSLSMiddleMode, int iOption)
 Set SLS middle mode for specific adapter. More...
 
int ADL_Display_SLSRecords_Get (int iAdapterIndex, ADLDisplayID displayID, int *lpNumOfRecords, int **lppGridIDList)
 Function to Get an SLS records from the driver database. More...
 
int ADL_Workstation_EnableUnsupportedDisplayModes (int iAdapterIndex)
 Function to set the Registry key "UnsupportedMonitorModesAllowed" when 10bit Pixel format is enabled from workstation aspect. More...
 

Detailed Description

Copyright (c) 2008 - 2022 Advanced Micro Devices, Inc.

THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

Contains all functions related to Display Manager that are exposed by ADL for Linux and Windows(XP, Vista and above); 32bit and 64bit platforms.

This file contains all Displays Manager functions exposed by ADL for Linux and Windows(XP, Vista and above); 32bit and 64bit platforms. All functions found in this file can be used as a reference to ensure the specified function pointers can be used by the appropriate runtime dynamic library loaders.

Macro Definition Documentation

◆ ADL_EXTERNC

#define ADL_EXTERNC

Copyright © 2009-2020 Advanced Micro Devices, Inc. All rights reserved.