From 86b4fa3c151026a581cf87d21b3c905d30313f2a Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 30 Dec 2015 10:48:06 +1300 Subject: [PATCH] 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 --- icd/nulldrv/nulldrv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icd/nulldrv/nulldrv.c b/icd/nulldrv/nulldrv.c index aa0be926..a15fdb85 100644 --- a/icd/nulldrv/nulldrv.c +++ b/icd/nulldrv/nulldrv.c @@ -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; } -- 2.34.1