Commit 7072cf2
authored
Fix Windows enumeration for non-WDDM devices via HKR (#178)
* Fix non-WDDM enumeration
Always try HKR enumeration irrespective of
DXGK enumeration status.
Currently, we fallback to HKR enumeration
only if DXGK enumeration fails.
For platforms with non-WDDM devices,
DXGK fails to see WDDM adapters.
If one platform with WDDM adapters is enumerated
successfully via DXGK, the other platform with
no WDDM adapters fails to get enumerated.
Using HKR path unconditionally allows such
platforms to be enumerated.
While at it, also fix memory leak due to
not freeing library handle in some cases.
* Fix status and error messaging in enumeration.
Fix status tracking and error messaging
in Windows enumeration after recent change.
* Bump up OpenCL ICD Loader version
Bump up OpenCL ICD loader version
to 3.0.3 after recent fix to
Windows enumeration logic.
* Fix status return for Windows enumeration.
While trying to fix error trace prints,
overall status returned changed to status
of last enumeration.
Use separate variable for individual status,
but keep original logic to combine overall status
and return the same.1 parent 5b280f6 commit 7072cf2
2 files changed
Lines changed: 19 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 123 | | |
128 | 124 | | |
129 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
| |||
218 | 226 | | |
219 | 227 | | |
220 | 228 | | |
221 | | - | |
222 | 229 | | |
| 230 | + | |
223 | 231 | | |
224 | 232 | | |
225 | 233 | | |
| |||
0 commit comments