Fix small issues in documentation and code
authorMatteo Franchin <matteo.franchin@arm.com>
Wed, 11 Sep 2019 13:26:22 +0000 (13:26 +0000)
committerMatteo Franchin <matteo.franchin@arm.com>
Wed, 11 Sep 2019 13:26:22 +0000 (13:26 +0000)
A couple of details in the installation instructions needed updating.
Also fixed a warning message due to a missing return statement (the
return value is currently not used in calls to the function).

Signed-off-by: Matteo Franchin <matteo.franchin@arm.com>
Change-Id: I715b954579253e664ebe01f757587e0602ad82e7

README.md
layer/private_data.cpp

index d62835f..37ff2b0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -35,8 +35,7 @@ git clone https://github.com/KhronosGroup/Vulkan-Loader.git
 mkdir Vulkan-Loader/build
 cd Vulkan-Loader/build
 ../scripts/update_deps.py
-make -C Vulkan-Headers install
-cmake -C helper.cmake .. -DBUILD_WSI_HEADLESS_SUPPORT=ON
+cmake -C helper.cmake ..
 make
 make install
 ```
index 4d15769..8396a94 100644 (file)
@@ -88,6 +88,7 @@ device_private_data &device_private_data::create(VkDevice dev, PFN_vkGetDevicePr
       new device_private_data(dev, get_proc, instance_private_data::get(get_key(phys_dev)), set_loader_data);
    scoped_mutex lock(g_data_lock);
    g_device_data[get_key(dev)] = dev_data;
+   return *dev_data;
 }
 
 device_private_data &device_private_data::get(void *key)