Commit 8a0686e1 by Jamie Madill Committed by Commit Bot

SystemInfo: Fix Windows driver version masking.

Should be applying a 16-bit mask instead of 8-bit. Bug: angleproject:3926 Change-Id: I2b0a28a5de42437890a9c0d1bbc57b48a5d64451 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1814980Reviewed-by: 's avatarJonah Ryan-Davis <jonahr@google.com> Reviewed-by: 's avatarIan Elliott <ianelliott@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent fea65766
......@@ -53,11 +53,11 @@ bool GetDevicesFromDXGI(std::vector<GPUDeviceInfo> *devices)
uint64_t intVersion = umdVersion.QuadPart;
std::ostringstream o;
const uint64_t kMask = 0xFF;
o << ((intVersion >> 48) & kMask) << ".";
o << ((intVersion >> 32) & kMask) << ".";
o << ((intVersion >> 16) & kMask) << ".";
o << (intVersion & kMask);
constexpr uint64_t kMask16 = std::numeric_limits<uint16_t>::max();
o << ((intVersion >> 48) & kMask16) << ".";
o << ((intVersion >> 32) & kMask16) << ".";
o << ((intVersion >> 16) & kMask16) << ".";
o << (intVersion & kMask16);
GPUDeviceInfo device;
device.vendorId = desc.VendorId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment