commit | c45c7a415c6c6810525e56564d8ea61536121ac6 | [log] [tgz] |
---|---|---|
author | Yang Gu <yang.gu@intel.com> | Wed Jul 07 08:58:01 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 07 08:58:01 2021 +0000 |
tree | 0643d242675f1375dd409f56cadd3750730dcd40 | |
parent | 4a811043ccd2b57b9bacd2cb79f30802c18f6301 [diff] [blame] |
Extend Intel graphics driver version to 2 fields The 4th field of Intel new graphics driver will overflow soon. For example, the lastest driver version is 27.20.100.9466 and the 4th field, 9466, will meet the maximum 9999 soon. Future driver will bump the 3rd field from 100 to 101. This CL extends driver version check from 4th field to both 3rd and 4th fields. Check below 2 documents for more details. https://www.intel.com/content/www/us/en/support/articles/000005654/graphics.html https://docs.google.com/document/d/1Xm4afyGR3Ow3W2G-uig9fLQR01XzmSXeanM9OXDVhlg/edit#heading=h.k8onwbxk2ig Bug: None Change-Id: I0ce59ca81b1edd4c63b9f3b0128788c2bf6ade17 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/57180 Reviewed-by: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/common/GPUInfo.h b/src/common/GPUInfo.h index eb69644..2b30d96 100644 --- a/src/common/GPUInfo.h +++ b/src/common/GPUInfo.h
@@ -48,8 +48,8 @@ // Do comparison between two driver versions. Currently we only support the comparison between // Intel D3D driver versions. - // - Return a negative value if version1 is older - // - Return a positive value if version1 is newer + // - Return -1 if build number of version1 is smaller + // - Return 1 if build number of version1 is bigger // - Return 0 if version1 and version2 represent same driver version int CompareD3DDriverVersion(PCIVendorID vendorId, const D3DDriverVersion& version1,