Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jp7677/dxvk-nvapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorJens Peters <jp7677@gmail.com>2022-06-04 08:18:14 +0300
committerJens Peters <jp7677@gmail.com>2022-06-04 08:18:14 +0300
commit30b6afaac1b4a844818c1740838396c53627ddfd (patch)
tree80ae8e15e2c76cf3d7fe204912798c66ee07d4d8 /inc
parentbf3f538c9da305221a980a0a2b90802ad54deeb2 (diff)
includes: Update NVAPI headers to R515
Diffstat (limited to 'inc')
-rwxr-xr-xinc/NvApiDriverSettings.c2
-rwxr-xr-xinc/NvApiDriverSettings.h6
-rwxr-xr-xinc/nvapi.h40
-rwxr-xr-xinc/nvapi_interface.h2
4 files changed, 37 insertions, 13 deletions
diff --git a/inc/NvApiDriverSettings.c b/inc/NvApiDriverSettings.c
index 546246f..ff70fe9 100755
--- a/inc/NvApiDriverSettings.c
+++ b/inc/NvApiDriverSettings.c
@@ -1,6 +1,6 @@
/*****************************************************************************\
|* *|
-|* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. *|
+|* Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved. *|
|* *|
|* Permission is hereby granted, free of charge, to any person obtaining a *|
|* copy of this software and associated documentation files (the "Software"), *|
diff --git a/inc/NvApiDriverSettings.h b/inc/NvApiDriverSettings.h
index a101b69..01e53cb 100755
--- a/inc/NvApiDriverSettings.h
+++ b/inc/NvApiDriverSettings.h
@@ -1,6 +1,6 @@
/*****************************************************************************\
|* *|
-|* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. *|
+|* Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved. *|
|* *|
|* Permission is hereby granted, free of charge, to any person obtaining a *|
|* copy of this software and associated documentation files (the "Software"), *|
@@ -264,7 +264,7 @@ enum EValues_OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL {
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_ZERO_SCANLINES = 0,
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_ONE_FULL_FRAME_OF_SCANLINES = 100,
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_NUM_VALUES = 2,
- OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_DEFAULT = 0
+ OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_DEFAULT = 0U
};
enum EValues_OGL_DEFAULT_SWAP_INTERVAL_SIGN {
@@ -358,7 +358,7 @@ enum EValues_OGL_THREAD_CONTROL {
OGL_THREAD_CONTROL_ENABLE = 0x00000001,
OGL_THREAD_CONTROL_DISABLE = 0x00000002,
OGL_THREAD_CONTROL_NUM_VALUES = 2,
- OGL_THREAD_CONTROL_DEFAULT = 0
+ OGL_THREAD_CONTROL_DEFAULT = 0U
};
enum EValues_OGL_TMON_LEVEL {
diff --git a/inc/nvapi.h b/inc/nvapi.h
index 382a446..44af933 100755
--- a/inc/nvapi.h
+++ b/inc/nvapi.h
@@ -1,6 +1,6 @@
/*****************************************************************************\
|* *|
-|* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. *|
+|* Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved. *|
|* *|
|* Permission is hereby granted, free of charge, to any person obtaining a *|
|* copy of this software and associated documentation files (the "Software"), *|
@@ -24,7 +24,7 @@
\*****************************************************************************/
///////////////////////////////////////////////////////////////////////////////
//
-// Date: Jan 9, 2022
+// Date: May 4, 2022
// File: nvapi.h
//
// NvAPI provides an interface to NVIDIA devices. This file contains the
@@ -1196,6 +1196,15 @@ typedef enum _NvAPI_Status
NVAPI_NO_VULKAN = -229, //!< OpenGL does not export Vulkan fake extensions
NVAPI_REQUEST_PENDING = -230, //!< A request for NvTOPPs telemetry CData has already been made and is pending a response.
NVAPI_RESOURCE_IN_USE = -231, //!< Operation cannot be performed because the resource is in use.
+ NVAPI_INVALID_IMAGE = -232, //!< Device kernel image is invalid
+ NVAPI_INVALID_PTX = -233, //!< PTX JIT compilation failed
+ NVAPI_NVLINK_UNCORRECTABLE = -234, //!< Uncorrectable NVLink error was detected during the execution
+ NVAPI_JIT_COMPILER_NOT_FOUND = -235, //!< PTX JIT compiler library was not found.
+ NVAPI_INVALID_SOURCE = -236, //!< Device kernel source is invalid.
+ NVAPI_ILLEGAL_INSTRUCTION = -237, //!< While executing a kernel, the device encountered an illegal instruction.
+ NVAPI_INVALID_PC = -238, //!< While executing a kernel, the device program counter wrapped its address space
+ NVAPI_LAUNCH_FAILED = -239, //!< An exception occurred on the device while executing a kernel
+ NVAPI_NOT_PERMITTED = -240, //!< Attempted operation is not permitted.
} NvAPI_Status;
@@ -3191,7 +3200,7 @@ typedef struct _NV_GPU_DISPLAYIDS
NvU32 isWFD : 1; //!< Deprecated. Will always return 0.
NvU32 isConnected : 1; //!< if bit is set, then this display is connected
- NvU32 reservedInternal :10; //!< Do not use
+ NvU32 reservedInternal : 10; //!< Do not use
NvU32 isPhysicallyConnected : 1; //!< if bit is set, then this display is a phycially connected display; Valid only when isConnected bit is set
NvU32 reserved : 14; //!< must be zero
} NV_GPU_DISPLAYIDS;
@@ -4815,7 +4824,7 @@ typedef struct
void *callbackParam; //!< This value will be passed back to the callback function when an event occurs
union
{
- NVAPI_CALLBACK_QSYNCEVENT nvQSYNCEventCallback; //!< Callback function pointer for QSYNC events
+ NVAPI_CALLBACK_QSYNCEVENT nvQSYNCEventCallback; //!< Callback function pointer for QSYNC events
}nvCallBackFunc;
} NV_EVENT_REGISTER_CALLBACK, *PNV_EVENT_REGISTER_CALLBACK;
@@ -5445,6 +5454,8 @@ typedef NV_LICENSABLE_FEATURES_V4 NV_LICENSABLE_FEATURES;
//! SUPPORTED OS: Windows 7 and higher
//!
//!
+//! TCC_SUPPORTED
+//!
//! \param [in] hPhysicalGpu GPU selection
//! \param [in,out] pLicensableFeatures Licensable features information.
//!
@@ -5490,6 +5501,7 @@ typedef NV_GPU_VR_READY_V1 NV_GPU_VR_READY;
//! \ingroup gpu
///////////////////////////////////////////////////////////////////////////////
NVAPI_INTERFACE NvAPI_GPU_GetVRReadyData(__in NvPhysicalGpuHandle hPhysicalGpu, __inout NV_GPU_VR_READY *pGpuVrReadyData);
+
//! Used in NvAPI_GPU_GetPerfDecreaseInfo.
//! Bit masks for knowing the exact reason for performance decrease
typedef enum _NVAPI_GPU_PERF_DECREASE
@@ -14661,10 +14673,21 @@ typedef struct
NvU64 gpuVAStart; //!< [OUT] gpu virtual address where resource starts
NvU64 gpuVASize; //!< [OUT] virtual memory size
} NVAPI_UAV_INFO_V1;
+
+typedef struct
+{
+ NvU32 version; //!< Structure version
+ NvU32 surfaceHandle; //!< [OUT] driver handle for a UAV (that can be used as a cudaSurfaceObject_t)
+ NvU64 gpuVAStart; //!< [OUT] gpu virtual address where resource starts
+ NvU64 gpuVASize; //!< [OUT] virtual memory size
+ NvU64 outFlags;
+} NVAPI_UAV_INFO_V2;
+
#define NVAPI_UAV_INFO_VER1 1
+#define NVAPI_UAV_INFO_VER2 MAKE_NVAPI_VERSION(NVAPI_UAV_INFO_V2, 2)
-#define NVAPI_UAV_INFO_VER NVAPI_UAV_INFO_VER1
-typedef NVAPI_UAV_INFO_V1 NVAPI_UAV_INFO;
+#define NVAPI_UAV_INFO_VER NVAPI_UAV_INFO_VER2
+typedef NVAPI_UAV_INFO_V2 NVAPI_UAV_INFO;
NVAPI_INTERFACE NvAPI_D3D12_CaptureUAVInfo(__in ID3D12Device* pDevice,
__out NVAPI_UAV_INFO *pUAVInfo);
@@ -15312,7 +15335,7 @@ NVAPI_INTERFACE NvAPI_D3D11_EnumerateMetaCommands(__in
//! #NvAPI_Status. If there are return error codes with specific
//! meaning for this API, they are listed below.
//!
-//! DXGI_ERROR_NOT_SUPPORTED - The requested Metacommand is not supported.
+//! NVAPI_NOT_SUPPORTED - The requested Metacommand is not supported.
//! \endcode
//! \ingroup dx
///////////////////////////////////////////////////////////////////////////////
@@ -15536,7 +15559,7 @@ NVAPI_INTERFACE NvAPI_D3D12_EnumerateMetaCommands(__in
//! #NvAPI_Status. If there are return error codes with specific
//! meaning for this API, they are listed below.
//!
-//! DXGI_ERROR_NOT_SUPPORTED - The requested Metacommand is not supported.
+//! NVAPI_NOT_SUPPORTED - The requested Metacommand is not supported.
//! \endcode
//! \ingroup dx
///////////////////////////////////////////////////////////////////////////////
@@ -18426,6 +18449,7 @@ typedef enum
PRESENT_END = 5,
INPUT_SAMPLE = 6,
TRIGGER_FLASH = 7,
+ PC_LATENCY_PING = 8,
} NV_LATENCY_MARKER_TYPE;
//! SUPPORTED OS: Windows 7 and higher
diff --git a/inc/nvapi_interface.h b/inc/nvapi_interface.h
index 381e5c9..5f6feb4 100755
--- a/inc/nvapi_interface.h
+++ b/inc/nvapi_interface.h
@@ -1,6 +1,6 @@
/*****************************************************************************\
|* *|
-|* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. *|
+|* Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved. *|
|* *|
|* Permission is hereby granted, free of charge, to any person obtaining a *|
|* copy of this software and associated documentation files (the "Software"), *|