wsi: Add queries for VkDisplayWSI's and VkFormat's to demos.
authorIan Elliott <ian@LunarG.com>
Tue, 21 Apr 2015 22:41:02 +0000 (16:41 -0600)
committerIan Elliott <ian@LunarG.com>
Fri, 15 May 2015 23:41:11 +0000 (17:41 -0600)
commite4602cd9e6cc3a806338c6a06c8ef77a4175076f
tree7836495049c9dd7bd5d892ac47f368635278dd92
parent4d0b66f936c27ff7592b3def08d1a6cc30db4379
wsi: Add queries for VkDisplayWSI's and VkFormat's to demos.

Show how to query which VkFormat to use for a WSI swap chain.  In order to work
correctly, changes are needed to existing ICDs:

- Changed the order of VkFormats for the intel sample driver, so that the
  desired value will be first (which is what the demos will use).

- Enhanced the nulldrv to support the
  VK_PHYSICAL_DEVICE_INFO_TYPE_DISPLAY_PROPERTIES_WSI query.
demos/cube.c
demos/tri.c
icd/nulldrv/nulldrv.c
icd/nulldrv/nulldrv.h