Skip to content

Commit f977520

Browse files
committed
Pull latest ags_lib for 5.0.6 release
* Fix min/max/avg luminance in display info * Clean up documentation * Add WACK-compliant version of the library
2 parents d17b3a9 + ba93780 commit f977520

File tree

12 files changed

+22
-16
lines changed

12 files changed

+22
-16
lines changed

ags_lib/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# AMD AGS Library Changelog
22

3+
### v5.0.6 - 2016-03-28
4+
* Fix min/max/avg luminance in display info
5+
* Clean up documentation
6+
* Add WACK-compliant version of the library
7+
38
### v5.0.5 - 2016-12-08
49
* Add function to set displays into HDR mode
510
* Implement full GPU enumeration with adapter string, device id, revision id, and vendor id

ags_lib/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
1+
Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

ags_lib/doc/amd_ags.chm

244 Bytes
Binary file not shown.

ags_lib/inc/amd_ags.h

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
2+
// Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
@@ -43,8 +43,9 @@
4343
/// * Per GPU display enumeration including information on display name, resolution and HDR capabilities.
4444
/// * Optional user supplied memory allocator.
4545
/// * Function to set displays into HDR mode.
46+
/// * A Microsoft WACK compliant version of the library.
4647
/// * DirectX11 shader compiler controls.
47-
/// * DirectX11 multiview extension.
48+
/// * DirectX11 multiview extension enabling MultiView and MultiRes rendering.
4849
/// * DirectX11 Crossfire API now supports using the API without needing a driver profile. Can also specify the transfer engine.
4950
///
5051
/// Using the AGS library
@@ -56,7 +57,7 @@
5657
/// The AGSSample application is the simplest of the three examples and demonstrates the code required to initialize AGS and use it to query the GPU and Eyefinity state.
5758
/// The CrossfireSample application demonstrates the use of the new API to transfer resources on GPUs in Crossfire mode. Lastly, the EyefinitySample application provides a more
5859
/// extensive example of Eyefinity setup than the basic example provided in AGSSample.
59-
/// There are other samples on Github that demonstrate the DirectX shader extensions, such as the Barycentrics11 and Barycentrics12 samples.
60+
/// There are other samples on GitHub that demonstrate the DirectX shader extensions, such as the Barycentrics11 and Barycentrics12 samples.
6061
///
6162
/// To add AGS support to an existing project, follow these steps:
6263
/// * Link your project against the correct import library. Choose from either the 32 bit or 64 bit version.
@@ -74,7 +75,7 @@
7475

7576
#define AMD_AGS_VERSION_MAJOR 5 ///< AGS major version
7677
#define AMD_AGS_VERSION_MINOR 0 ///< AGS minor version
77-
#define AMD_AGS_VERSION_PATCH 5 ///< AGS patch version
78+
#define AMD_AGS_VERSION_PATCH 6 ///< AGS patch version
7879

7980
#ifdef __cplusplus
8081
extern "C" {
@@ -105,7 +106,7 @@ struct ID3D12Device;
105106
/// The return codes
106107
enum AGSReturnCode
107108
{
108-
AGS_SUCCESS, ///< Succesful function call
109+
AGS_SUCCESS, ///< Successful function call
109110
AGS_FAILURE, ///< Failed to complete call for some unspecified reason
110111
AGS_INVALID_ARGS, ///< Invalid arguments into the function
111112
AGS_OUT_OF_MEMORY, ///< Out of memory when allocating space internally
@@ -154,7 +155,7 @@ enum AGSDriverExtensionDX12
154155
const unsigned int AGS_DX12_SHADER_INSTRINSICS_SPACE_ID = 0x7FFF0ADE; // 2147420894
155156

156157

157-
/// Addtional topologies supported via extensions
158+
/// Additional topologies supported via extensions
158159
enum AGSPrimitiveTopology
159160
{
160161
AGS_PRIMITIVE_TOPOLOGY_QUADLIST = 7,
@@ -191,7 +192,7 @@ enum AGSAfrTransferEngine
191192
/// The display flags describing various properties of the display.
192193
enum AGSDisplayFlags
193194
{
194-
AGS_DISPLAYFLAG_PRIMARY_DISPLAY = 1 << 0, ///< Whether this display is marked as the primary display
195+
AGS_DISPLAYFLAG_PRIMARY_DISPLAY = 1 << 0, ///< Whether this display is marked as the primary display. Not set on the WACK version.
195196
AGS_DISPLAYFLAG_HDR10 = 1 << 1, ///< HDR10 is supported on this display
196197
AGS_DISPLAYFLAG_DOLBYVISION = 1 << 2, ///< Dolby Vision is supported on this display
197198
AGS_DISPLAYFLAG_EYEFINITY_IN_GROUP = 1 << 4, ///< The display is part of the Eyefinity group
@@ -228,7 +229,7 @@ struct AGSClipRect
228229
struct AGSDisplayInfo
229230
{
230231
char name[ 256 ]; ///< The name of the display
231-
char displayDeviceName[ 32 ]; ///< The display device name, ie DISPLAY_DEVICE::DeviceName
232+
char displayDeviceName[ 32 ]; ///< The display device name, i.e. DISPLAY_DEVICE::DeviceName
232233

233234
unsigned int displayFlags; ///< Bitfield of ::AGSDisplayFlags
234235

@@ -289,7 +290,7 @@ struct AGSDeviceInfo
289290
int memoryClock; ///< Memory clock speed at 100% power in MHz
290291
float teraFlops; ///< Teraflops of GPU. Zero if not GCN. Calculated from iCoreClock * iNumCUs * 64 Pixels/clk * 2 instructions/MAD
291292

292-
int isPrimaryDevice; ///< Whether or not this is the primary adapter in the system.
293+
int isPrimaryDevice; ///< Whether or not this is the primary adapter in the system. Not set on the WACK version.
293294
long long localMemoryInBytes; ///< The size of local memory in bytes. 0 for non AMD hardware.
294295

295296
int numDisplays; ///< The number of active displays found to be attached to this adapter.
@@ -309,8 +310,8 @@ struct AGSDeviceInfo
309310
/// API for initialization, cleanup, HDR display modes and Crossfire GPU count
310311
/// @{
311312

312-
typedef void* (__stdcall *AGS_ALLOC_CALLBACK)( int allocationSize ); ///< AGS user defined allocation protoype
313-
typedef void (__stdcall *AGS_FREE_CALLBACK)( void* allocationPtr ); ///< AGS user defined free protoype
313+
typedef void* (__stdcall *AGS_ALLOC_CALLBACK)( int allocationSize ); ///< AGS user defined allocation prototype
314+
typedef void (__stdcall *AGS_FREE_CALLBACK)( void* allocationPtr ); ///< AGS user defined free prototype
314315

315316
/// The configuration options that can be passed in to \ref agsInit
316317
struct AGSConfiguration
@@ -365,7 +366,7 @@ struct AGSDisplaySettings
365366
double maxLuminance; ///< The maximum scene luminance in nits
366367

367368
double maxContentLightLevel; ///< The maximum content light level in nits (MaxCLL)
368-
double maxFrameAverageLightLevel; ///< The maximum frame average light livel in nits (MaxFALL)
369+
double maxFrameAverageLightLevel; ///< The maximum frame average light level in nits (MaxFALL)
369370
};
370371

371372
///
@@ -457,7 +458,7 @@ AMD_AGS_API AGSReturnCode agsDriverExtensionsDX12_DeInit( AGSContext* context );
457458
///
458459
/// \param [in] context Pointer to a context. This is generated by \ref agsInit
459460
/// \param [in] device The D3D11 device.
460-
/// \param [in] uavSlot The UAV slot reserved for intrinsic support. This must match the slot defined in the HLSL, ie #define AmdDxExtShaderIntrinsicsUAVSlot.
461+
/// \param [in] uavSlot The UAV slot reserved for intrinsic support. This must match the slot defined in the HLSL, i.e. #define AmdDxExtShaderIntrinsicsUAVSlot.
461462
/// The default slot is 7, but the caller is free to use an alternative slot.
462463
/// \param [out] extensionsSupported Pointer to a bit mask that this function will fill in to indicate which extensions are supported. See AGSDriverExtensionDX11
463464
///
@@ -484,7 +485,7 @@ AMD_AGS_API AGSReturnCode agsDriverExtensionsDX11_DeInit( AGSContext* context );
484485
/// In order to use this function, AGS must already be initialized and agsDriverExtensionsDX11_Init must have been called successfully.
485486
///
486487
/// The Screen Rect extension, which is only available on GCN hardware, allows the user to pass in three of the four corners of a rectangle.
487-
/// The hardware then uses the bounding box of the vertices to rasterize the rectangle primitive (ie as a rectangle rather than two triangles).
488+
/// The hardware then uses the bounding box of the vertices to rasterize the rectangle primitive (i.e. as a rectangle rather than two triangles).
488489
/// \note Note that this will not return valid interpolated values, only valid SV_Position values.
489490
/// \note If either the Quad List or Screen Rect extension are used, then agsDriverExtensionsDX11_IASetPrimitiveTopology should be called in place of the native DirectX11 equivalent all the time.
490491
///
@@ -633,7 +634,7 @@ AMD_AGS_API AGSReturnCode agsDriverExtensionsDX11_MultiDrawIndexedInstancedIndir
633634

634635
///
635636
/// This method can be used to limit the maximum number of threads the driver uses for asynchronous shader compilation.
636-
/// Setting it to 0 will disable asynchronous compilation completely and force the shaders to be compiled “inline” on the threads that call Create*Shader.
637+
/// Setting it to 0 will disable asynchronous compilation completely and force the shaders to be compiled "inline" on the threads that call Create*Shader.
637638
///
638639
/// This method can only be called before any shaders are created and being compiled by the driver.
639640
/// If this method is called after shaders have been created the function will return AGS_FAILURE.

ags_lib/lib/amd_ags_uwp_x64.dll

30 KB
Binary file not shown.

ags_lib/lib/amd_ags_uwp_x64.lib

11 KB
Binary file not shown.

ags_lib/lib/amd_ags_uwp_x86.dll

25 KB
Binary file not shown.

ags_lib/lib/amd_ags_uwp_x86.lib

11.2 KB
Binary file not shown.

ags_lib/lib/amd_ags_x64.dll

0 Bytes
Binary file not shown.

ags_lib/lib/amd_ags_x64.lib

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)