On Fri Jan 19 04:03:16 2024 +0000, Zhiyi Zhang wrote:
Please add a test for this.
While two separate Windows machines on which I queried the size of array to allocate did return 32, this number isn't something that's documented anywhere and probably shouldn't be relied on directly. I can add a test that checks that `NumAdapters` is always set to `32` if `pAdapters` is `NULL` and it might even pass on most if not all Windows versions currently out there but Microsoft could one day decide that in such cases `64` should now be returned and there would be nothing wrong with that… or so I believe. Otherwise, this is already tested by first `ok(enum_adapters_2_desc.NumAdapters, "Expect not zero.\n");`, although not very strictly.
I'm also not sure what would Windows return on systems with more than 32 adapters. Can Windows even support that many GPUs at the same time?