diff options
| author | Chris Forbes <chrisforbes@google.com> | 2015-12-30 10:43:16 +1300 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2016-01-14 15:25:47 -0700 |
| commit | adf3f19358a736baed38defe5fb348ed962432b8 (patch) | |
| tree | 7a93cbd6fa53acffa524b20e11831e8094aed023 | |
| parent | f4a8b4935023b197fd714632cf6f994e1915fc2b (diff) | |
| download | usermoji-adf3f19358a736baed38defe5fb348ed962432b8.tar.xz | |
nulldrv: Initialize memory types mask
Previously apps would randomly succeed or fail to find a matching memory type based on whatever junk happened to be here. Instead, claim to support all memory types.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
| -rw-r--r-- | icd/nulldrv/nulldrv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/icd/nulldrv/nulldrv.c b/icd/nulldrv/nulldrv.c index 3523f48d..903738e3 100644 --- a/icd/nulldrv/nulldrv.c +++ b/icd/nulldrv/nulldrv.c @@ -270,6 +270,7 @@ static VkResult img_get_memory_requirements(struct nulldrv_base *base, pRequirements->size = img->total_size; pRequirements->alignment = 4096; + pRequirements->memoryTypeBits = ~0u; /* can use any memory type */ return ret; } |
