diff options
| author | Chris Forbes <chrisforbes@google.com> | 2015-12-30 10:48:06 +1300 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2016-01-14 15:25:58 -0700 |
| commit | 86b4fa3c151026a581cf87d21b3c905d30313f2a (patch) | |
| tree | 3ce8be9142c1b9b471efcf10ef365cc66899e806 | |
| parent | 5c6c2aecd19258e6f3b5904b362c4a8c46a911ce (diff) | |
| download | usermoji-86b4fa3c151026a581cf87d21b3c905d30313f2a.tar.xz | |
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>
| -rw-r--r-- | icd/nulldrv/nulldrv.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
