mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 01:30:08 +01:00
zink: switch to passing VkPhysicalDeviceFeatures2 in VkDeviceCreateInfo
extensions need to have their feature structs passed in pNext to be enabled, so switch to using the feature struct here in preparation for that Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5163>
This commit is contained in:
parent
1983609212
commit
e5e657768c
1 changed files with 4 additions and 1 deletions
|
|
@ -829,7 +829,10 @@ zink_internal_create_screen(struct sw_winsys *winsys, int fd)
|
|||
dci.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
|
||||
dci.queueCreateInfoCount = 1;
|
||||
dci.pQueueCreateInfos = &qci;
|
||||
dci.pEnabledFeatures = &screen->feats;
|
||||
/* extensions don't have bool members in pEnabledFeatures.
|
||||
* this requires us to pass the whole VkPhysicalDeviceFeatures2 struct
|
||||
*/
|
||||
dci.pNext = &feats;
|
||||
const char *extensions[4] = {
|
||||
VK_KHR_MAINTENANCE1_EXTENSION_NAME,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue