nulldrv: Claim that our supported image formats can be used as color attachments
authorChris Forbes <chrisforbes@google.com>
Tue, 29 Dec 2015 21:48:06 +0000 (10:48 +1300)
committerJon Ashburn <jon@lunarg.com>
Thu, 14 Jan 2016 22:25:58 +0000 (15:25 -0700)
Previously if an app would be unable to find any color renderable format, so only
an app that didn't bother (and wasn't running under validation) would get anywhere.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
icd/nulldrv/nulldrv.c

index aa0be926d174e1861b2b0122d782d7f45cdf25bb..a15fdb85d8fa21740c9d0d7b78cc460d1710c26a 100644 (file)
@@ -1388,7 +1388,8 @@ VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFormatProperties(
 {
     NULLDRV_LOG_FUNC;
 
-    pFormatInfo->linearTilingFeatures = VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
+    pFormatInfo->linearTilingFeatures = VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT |
+        VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT;
     pFormatInfo->optimalTilingFeatures = pFormatInfo->linearTilingFeatures;
     pFormatInfo->bufferFeatures = 0;
 }