Skip to content

Commit

Permalink
nvapi-adapter: Maxwell GM107/GM108 support
Browse files Browse the repository at this point in the history
  • Loading branch information
pchome authored Nov 16, 2024
1 parent 9ad5619 commit 2027809
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nvapi/nvapi_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ namespace dxvk {
|| (HasNvkDriver() && IsVkDeviceExtensionSupported(VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_EXTENSION_NAME)))
return NV_GPU_ARCHITECTURE_GM200;

// VK_EXT_shader_image_atomic_int64 is supported on Maxwell 1 (GM10x) and newer
if (IsVkDeviceExtensionSupported(VK_EXT_SHADER_IMAGE_ATOMIC_INT64_EXTENSION_NAME))
return NV_GPU_ARCHITECTURE_GM000;

// Fall back to Kepler
return NV_GPU_ARCHITECTURE_GK100;
}
Expand Down

0 comments on commit 2027809

Please sign in to comment.