ADL (AMD Display Library) Public APIs  Version 17.1
Macros | Functions
lnx.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_ConfigMemory_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iScreenWidth, int iScreenHeight, int displayFeatureMask, int numDisplays, ADLMemoryDisplayFeatures *displayFeatureList, int *iNumMemTypes, ADLMemoryRequired **lppMemRequired)
 Function to get the memory configuration of an adapter. More...
 
int ADL2_Adapter_MemoryInfo_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLMemoryInfo *lpMemoryInfo)
 Function to retrieve memory information from the adapter. More...
 
int ADL2_Adapter_Tear_Free_Cap (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpTFCap)
 Functions to retreive Tear Free setting capabilities of the system. More...
 
int ADL2_Adapter_Tear_Free_Get (ADL_CONTEXT_HANDLE context, int iAdapter, int *pDefault, int *pRequested, int *pStatus)
 Get the requested tear free desktop setting and current status. More...
 
int ADL2_Adapter_Tear_Free_Set (ADL_CONTEXT_HANDLE context, int iAdapter, int iRequested, int *pStatus)
 Set the requested tear free desktop setting. More...
 
int ADL2_Adapter_XScreenInfo_Get (ADL_CONTEXT_HANDLE context, LPXScreenInfo lpXScreenInfo, int iInputSize)
 Function to retrieve all X Screen information for all OS-known adapters. More...
 
int ADL2_DesktopConfig_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpDesktopConfig)
 Function to get the Desktop Configuration. More...
 
int ADL2_DesktopConfig_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDesktopConfig)
 Function to set the Desktop Configuration. More...
 
int ADL2_Display_IdentifyDisplay (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iDisplayControllerIndex, int iShow, int iDisplayNum, int iPosX, int iPosY)
 Function to set the desktop configuration. More...
 
int ADL2_Display_LUTColor_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLGamma *lpGammaCurrent, ADLGamma *lpGammaDefault, ADLGamma *lpGammaMin, ADLGamma *lpGammaMax)
 Function to get the current value of gamma for a LUT (controller). More...
 
int ADL2_Display_LUTColor_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLGamma adlGamma)
 Function to set the current gamma value for a LUT (controller). More...
 
int ADL2_Display_XrandrDisplayName_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, char *lpXrandrDisplayName, int iBuffSize)
 Function to retrieve the name of the Xrandr display. More...
 
int ADL2_DisplayEnable_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpDisplayIndexList, int iDisplayListSize, int bPersistOnly)
 Function to dynamically enable displays on a GPU. More...
 
int ADL2_NumberOfDisplayEnable_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumberOfDisplays)
 Function to retrieve the number of enabled displays. More...
 
int ADL_Adapter_ConfigMemory_Get (int iAdapterIndex, int iScreenWidth, int iScreenHeight, int displayFeatureMask, int numDisplays, ADLMemoryDisplayFeatures *displayFeatureList, int *iNumMemTypes, ADLMemoryRequired **lppMemRequired)
 Function to get the memory configuration of an adapter. More...
 
int ADL_Adapter_MemoryInfo_Get (int iAdapterIndex, ADLMemoryInfo *lpMemoryInfo)
 Function to retrieve memory information from the adapter. More...
 
int ADL_Adapter_Tear_Free_Get (int iAdapter, int *pDefault, int *pRequested, int *pStatus)
 Get the requested tear free desktop setting and current status. More...
 
int ADL_Adapter_Tear_Free_Set (int iAdapter, int iRequested, int *pStatus)
 Set the requested tear free desktop setting. More...
 
int ADL_Adapter_XScreenInfo_Get (LPXScreenInfo lpXScreenInfo, int iInputSize)
 Function to retrieve all X Screen information for all OS-known adapters. More...
 
int ADL_DesktopConfig_Get (int iAdapterIndex, int *lpDesktopConfig)
 Function to get the Desktop Configuration. More...
 
int ADL_DesktopConfig_Set (int iAdapterIndex, int iDesktopConfig)
 Function to set the Desktop Configuration. More...
 
int ADL_Display_IdentifyDisplay (int iAdapterIndex, int iDisplayIndex, int iDisplayControllerIndex, int iShow, int iDisplayNum, int iPosX, int iPosY)
 Function to set the desktop configuration. More...
 
int ADL_Display_LUTColor_Get (int iAdapterIndex, int iDisplayIndex, ADLGamma *lpGammaCurrent, ADLGamma *lpGammaDefault, ADLGamma *lpGammaMin, ADLGamma *lpGammaMax)
 Function to get the current value of gamma for a LUT (controller). More...
 
int ADL_Display_LUTColor_Set (int iAdapterIndex, int iDisplayIndex, ADLGamma adlGamma)
 Function to set the current gamma value for a LUT (controller). More...
 
int ADL_Display_XrandrDisplayName_Get (int iAdapterIndex, int iDisplayIndex, char *lpXrandrDisplayName, int iBuffSize)
 Function to retrieve the name of the Xrandr display. More...
 
int ADL_DisplayEnable_Set (int iAdapterIndex, int *lpDisplayIndexList, int iDisplayListSize, int bPersistOnly)
 Function to dynamically enable displays on a GPU. More...
 
int ADL_NumberOfDisplayEnable_Get (int iAdapterIndex, int *lpNumberOfDisplays)
 Function to retrieve the number of enabled displays. 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 Linux-related functions exposed by ADL for Linux; 32bit and 64bit platforms.

This file contains all Linux-related ADL function exposed by ADL for Linux platforms. All functions in this file can be used as a reference to ensure the specific 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.