https://bugs.winehq.org/show_bug.cgi?id=54299
--- Comment #2 from Henri Verbeet hverbeet@gmail.com --- (In reply to François Gouget from comment #0)
The test seems unsure about the exact refcount value since it only tests for "refcount >= 1".
The point of the test is to test that the device keeps a reference to the adapter. However, it would be entirely plausible for e.g. the driver to keep some additional references to the adapter.
Note that the adapter can later be retrieved from (ultimately) the device; one such way is demonstrated a bit further down in the same test. It's possible of course that in later versions of Direct3D 12 things changed in such a way that the device no longer keeps a direct reference to the adapter interface, but instead references it by e.g. its LUID. (And then retrieves a new instance from the DXGI factory when needed.) In that case we'd probably simply want to remove this refcount test.