[PATCH v2 6/6] wined3d: Build the device list only once in wined3d_output_find_closest_matching_mode().