loader: Make device extensions return same count
authorCharles Giessen <charles@lunarg.com>
Wed, 5 Aug 2020 19:42:44 +0000 (13:42 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 2 Sep 2020 23:40:36 +0000 (17:40 -0600)
commitcdca83d072eab813f5144676c5d647398b96b14e
tree19369dd94e303fba5ba3af3685d4ff151850bbce
parent49648d8fb398ac7d3d8e159939de060b8e759ecf
loader: Make device extensions return same count

Previously the loader would return a different count in the call to
vkEnumeratePhysicalDeviceExtensionProperties if any implicit layers contained extensions
that a driver also happened to support, thus causing a duplicate entry to the count, but
was later resolved in the second call to that function. This commit de-duplicates the
extensions when getting the count, preventing such an issue from occuring.

Change-Id: I3b3c0b8871e412d26dda916ed1e1e3fe3299491e
loader/loader.c