hwcontext_vulkan: set hwctx->device_features

This was forgotten during the recent device feature refactor.
This commit is contained in:
Lynne 2024-10-09 00:58:14 +02:00
parent 31def0c3ce
commit 4ad4f8101a
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
1 changed files with 3 additions and 0 deletions

View File

@ -1638,6 +1638,9 @@ static int vulkan_device_create_internal(AVHWDeviceContext *ctx,
p->disable_multiplane = strtol(opt_d->value, NULL, 10); p->disable_multiplane = strtol(opt_d->value, NULL, 10);
} }
/* Set the public device feature struct and its pNext chain */
hwctx->device_features = p->feats.device;
/* Set the list of all active extensions */ /* Set the list of all active extensions */
hwctx->enabled_dev_extensions = dev_info.ppEnabledExtensionNames; hwctx->enabled_dev_extensions = dev_info.ppEnabledExtensionNames;
hwctx->nb_enabled_dev_extensions = dev_info.enabledExtensionCount; hwctx->nb_enabled_dev_extensions = dev_info.enabledExtensionCount;