diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2021-04-23 13:17:37 -0700 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2021-04-28 12:49:35 -0700 |
commit | e42d9eae15d031f455e65d4ddbcffff32a02926b (patch) | |
tree | dc37ad8269c661bd4cdda296773b39c7c206a4f0 /src/vkr_renderer.c | |
parent | f0facfbbf1dae97450cd14310c77986b122f76ae (diff) |
vkr: enabledLayerCount must be 0
We don't want the clients to mess with it.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Diffstat (limited to 'src/vkr_renderer.c')
-rw-r--r-- | src/vkr_renderer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vkr_renderer.c b/src/vkr_renderer.c index a064dfe..3126c09 100644 --- a/src/vkr_renderer.c +++ b/src/vkr_renderer.c @@ -682,6 +682,11 @@ vkr_dispatch_vkCreateInstance(struct vn_dispatch_context *dispatch, return; } + if (args->pCreateInfo->enabledLayerCount) { + args->ret = VK_ERROR_LAYER_NOT_PRESENT; + return; + } + if (args->pCreateInfo->enabledExtensionCount) { args->ret = VK_ERROR_EXTENSION_NOT_PRESENT; return; |