mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
VK: fix NVIDIA driverVersion check
This commit is contained in:
parent
4d0330bf82
commit
0f7534c755
1 changed files with 2 additions and 2 deletions
|
@ -157,10 +157,10 @@ namespace vk
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// SPIRV bugs were fixed in 452.28 for windows
|
// SPIRV bugs were fixed in 452.28 for windows
|
||||||
const u32 threshold_version = (452u >> 22) | (28 >> 14);
|
const u32 threshold_version = (452u << 22) | (28 << 14);
|
||||||
#else
|
#else
|
||||||
// SPIRV bugs were fixed in 450.56 for linux/BSD
|
// SPIRV bugs were fixed in 450.56 for linux/BSD
|
||||||
const u32 threshold_version = (450u >> 22) | (56 >> 14);
|
const u32 threshold_version = (450u << 22) | (56 << 14);
|
||||||
#endif
|
#endif
|
||||||
const auto current_version = props.driverVersion & ~0x3fffu; // Clear patch and revision fields
|
const auto current_version = props.driverVersion & ~0x3fffu; // Clear patch and revision fields
|
||||||
if (current_version < threshold_version)
|
if (current_version < threshold_version)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue