zink: support VK_EXT_extended_dynamic_state
just the screen parts Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7099>
This commit is contained in:
parent
66fc9f5571
commit
bab0d8630c
|
@ -62,6 +62,7 @@ def EXTENSIONS():
|
|||
Extension("VK_EXT_calibrated_timestamps"),
|
||||
Extension("VK_EXT_custom_border_color", alias="border_color", properties=True, feature="customBorderColors"),
|
||||
Extension("VK_EXT_blend_operation_advanced", alias="blend", properties=True),
|
||||
Extension("VK_EXT_extended_dynamic_state", alias="dynamic_state", feature="extendedDynamicState"),
|
||||
]
|
||||
|
||||
# There exists some inconsistencies regarding the enum constants, fix them.
|
||||
|
|
|
@ -784,6 +784,10 @@ load_device_extensions(struct zink_screen *screen)
|
|||
assert(have_device_time);
|
||||
free(domains);
|
||||
}
|
||||
if (screen->info.have_EXT_extended_dynamic_state) {
|
||||
GET_PROC_ADDR(CmdSetViewportWithCountEXT);
|
||||
GET_PROC_ADDR(CmdSetScissorWithCountEXT);
|
||||
}
|
||||
|
||||
#undef GET_PROC_ADDR
|
||||
|
||||
|
|
|
@ -69,6 +69,9 @@ struct zink_screen {
|
|||
|
||||
PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT vk_GetPhysicalDeviceCalibrateableTimeDomainsEXT;
|
||||
PFN_vkGetCalibratedTimestampsEXT vk_GetCalibratedTimestampsEXT;
|
||||
|
||||
PFN_vkCmdSetViewportWithCountEXT vk_CmdSetViewportWithCountEXT;
|
||||
PFN_vkCmdSetScissorWithCountEXT vk_CmdSetScissorWithCountEXT;
|
||||
};
|
||||
|
||||
static inline struct zink_screen *
|
||||
|
|
Loading…
Reference in New Issue