st/dri: implement the fence interface
[mesa.git] / src / gallium / state_trackers / wgl / stw_device.c
index 025dbdc838426cc80e264b31847ac9fba7478186..25b6341ecad4c24006b75ffddc3341e4ccacd77e 100644 (file)
@@ -213,6 +213,14 @@ BOOL APIENTRY
 DrvValidateVersion(
    ULONG ulVersion )
 {
-   /* TODO: get the expected version from the winsys */
-   return ulVersion == 1;
+   /* ulVersion is the version reported by the KMD:
+    * - via D3DKMTQueryAdapterInfo(KMTQAITYPE_UMOPENGLINFO) on WDDM,
+    * - or ExtEscape on XPDM and can be used to ensure the KMD and OpenGL ICD
+    *   versions match.
+    *
+    * We should get the expected version number from the winsys, but for now
+    * ignore it.
+    */
+   (void)ulVersion;
+   return TRUE;
 }