Skip to content

Commit

Permalink
Add comments.
Browse files Browse the repository at this point in the history
Formatting.
  • Loading branch information
jp7677 committed Sep 19, 2020
1 parent e57a5f4 commit 415d68d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/nvapi.cpp
Expand Up @@ -140,7 +140,7 @@ extern "C" {
NvAPI_Status __cdecl NvAPI_Initialize() {
constexpr auto n = "NvAPI_Initialize";

std::cerr << str::format("DXVK-NVAPI ", DXVK_NVAPI_VERSION) << std::endl;
std::cerr << str::format("DXVK-NVAPI", " ", DXVK_NVAPI_VERSION) << std::endl;

nvapiAdapterRegistry = new NvapiAdapterRegistry();
auto success = nvapiAdapterRegistry->Initialize();
Expand Down
2 changes: 1 addition & 1 deletion src/nvapi_d3d.cpp
Expand Up @@ -24,7 +24,7 @@ extern "C" {
if (pSliState->version != NV_GET_CURRENT_SLI_STATE_VER1 && pSliState->version != NV_GET_CURRENT_SLI_STATE_VER2)
return IncompatibleStructVersion(n);

// Report that SLI is not enabled
// Report that SLI is not available
pSliState->maxNumAFRGroups = 1;
pSliState->numAFRGroups = 1;
pSliState->currentAFRIndex = 0;
Expand Down
1 change: 1 addition & 0 deletions src/nvapi_d3d11.cpp
Expand Up @@ -77,6 +77,7 @@ extern "C" {
if (pDeviceOrContext == nullptr || supported == nullptr)
return InvalidArgument(n);

// DXVK does not know any special NVIDIA intrinsics
*supported = false;

return Ok(str::format(n, " ", code));
Expand Down
1 change: 1 addition & 0 deletions src/nvapi_disp.cpp
Expand Up @@ -13,6 +13,7 @@ extern "C" {
if (pHdrCapabilities->version != NV_HDR_CAPABILITIES_VER1 && pHdrCapabilities->version != NV_HDR_CAPABILITIES_VER2)
return IncompatibleStructVersion(n);

// Report that HDR is not available
pHdrCapabilities->isST2084EotfSupported = false;
pHdrCapabilities->isTraditionalHdrGammaSupported = false;
pHdrCapabilities->isEdrSupported = false;
Expand Down
2 changes: 1 addition & 1 deletion src/sysinfo/nvapi_adapter.cpp
Expand Up @@ -41,7 +41,7 @@ namespace dxvk {
VK_VERSION_MINOR(m_deviceProperties.driverVersion >> 0) >> 2,
VK_VERSION_PATCH(m_deviceProperties.driverVersion >> 2) >> 4);

std::cerr << str::format("NvAPI Device: ", m_deviceProperties.deviceName, " (",
std::cerr << str::format("NvAPI Device:", " ", m_deviceProperties.deviceName, " (",
VK_VERSION_MAJOR(m_vkDriverVersion), ".",
VK_VERSION_MINOR(m_vkDriverVersion), ".",
VK_VERSION_PATCH(m_vkDriverVersion),
Expand Down
2 changes: 1 addition & 1 deletion src/sysinfo/nvapi_output.cpp
Expand Up @@ -12,7 +12,7 @@ namespace dxvk {
dxgiOutput->GetDesc(&desc);

m_deviceName = str::fromws(desc.DeviceName);
std::cerr << str::format("NvAPI Output: ", m_deviceName) << std::endl;
std::cerr << str::format("NvAPI Output:", " ", m_deviceName) << std::endl;
}

uintptr_t NvapiOutput::GetParent() {
Expand Down

0 comments on commit 415d68d

Please sign in to comment.