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/tests
diff options
context:
space:
mode:
authorJens Peters <jp7677@gmail.com>2022-01-14 11:05:34 +0300
committerJens Peters <jp7677@gmail.com>2022-01-14 13:12:55 +0300
commitdab87863d298ec5938a3b928774d588c22bd41eb (patch)
tree779dd77a49f0e377f1ddfa8624fd7bd343989f51 /tests
parent9df470785e01ad1d7aea568eb7dae984b4c3f5e6 (diff)
nvapi: Add EnumEnumTCCPhysicalGPUs
There is no TCC mode on Linux, just return zero GPUs.
Diffstat (limited to 'tests')
-rw-r--r--tests/nvapi_sysinfo.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/nvapi_sysinfo.cpp b/tests/nvapi_sysinfo.cpp
index 3b4236b..452bc5b 100644
--- a/tests/nvapi_sysinfo.cpp
+++ b/tests/nvapi_sysinfo.cpp
@@ -87,7 +87,7 @@ TEST_CASE("Topology methods succeed", "[.sysinfo]") {
}
SECTION("EnumPhysicalGPUs succeeds") {
- NvPhysicalGpuHandle handles[NVAPI_MAX_LOGICAL_GPUS];
+ NvPhysicalGpuHandle handles[NVAPI_MAX_PHYSICAL_GPUS];
NvU32 count = 0U;
for (auto handle : handles)
handle = nullptr;
@@ -107,6 +107,13 @@ TEST_CASE("Topology methods succeed", "[.sysinfo]") {
REQUIRE(strcmp(name2, "Device2") == 0);
}
+ SECTION("EnumEnumTCCPhysicalGPUs succeeds") {
+ NvPhysicalGpuHandle handles[NVAPI_MAX_PHYSICAL_GPUS];
+ NvU32 count = -1U;
+ REQUIRE(NvAPI_EnumTCCPhysicalGPUs(handles, &count) == NVAPI_OK);
+ REQUIRE(count == 0);
+ }
+
SECTION("EnumNvidiaDisplayHandle succeeds") {
NvDisplayHandle handle1 = nullptr;
REQUIRE(NvAPI_EnumNvidiaDisplayHandle(0U, &handle1) == NVAPI_OK);