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>
macos/master
Chia-I Wu 4 years ago
parent f0facfbbf1
commit e42d9eae15
  1. 5
      src/vkr_renderer.c

@ -682,6 +682,11 @@ vkr_dispatch_vkCreateInstance(struct vn_dispatch_context *dispatch,
return; return;
} }
if (args->pCreateInfo->enabledLayerCount) {
args->ret = VK_ERROR_LAYER_NOT_PRESENT;
return;
}
if (args->pCreateInfo->enabledExtensionCount) { if (args->pCreateInfo->enabledExtensionCount) {
args->ret = VK_ERROR_EXTENSION_NOT_PRESENT; args->ret = VK_ERROR_EXTENSION_NOT_PRESENT;
return; return;

Loading…
Cancel
Save