nulldrv: Claim that our supported image formats can be used as color attachments
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>
diff --git a/icd/nulldrv/nulldrv.c b/icd/nulldrv/nulldrv.c
index aa0be92..a15fdb8 100644
--- a/icd/nulldrv/nulldrv.c
+++ b/icd/nulldrv/nulldrv.c
@@ -1388,7 +1388,8 @@
{
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;
}