zink: hook up VK_EXT_sample_locations

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10520>
This commit is contained in:
Mike Blumenkrantz
2021-04-02 15:15:45 -04:00
committed by Marge Bot
parent 0477fbc655
commit 817a8fa22f
3 changed files with 11 additions and 0 deletions

View File

@@ -79,6 +79,9 @@ EXTENSIONS = [
alias="interlock",
features=True,
conditions=["$feats.fragmentShaderSampleInterlock", "$feats.fragmentShaderPixelInterlock"]),
Extension("VK_EXT_sample_locations",
alias="sample_locations",
properties=True),
Extension("VK_KHR_shader_draw_parameters"),
Extension("VK_KHR_sampler_mirror_clamp_to_edge"),
Extension("VK_EXT_conditional_rendering",

View File

@@ -1209,6 +1209,11 @@ load_device_extensions(struct zink_screen *screen)
GET_PROC_ADDR(DestroySwapchainKHR);
}
if (screen->info.have_EXT_sample_locations) {
GET_PROC_ADDR(CmdSetSampleLocationsEXT);
GET_PROC_ADDR_INSTANCE(GetPhysicalDeviceMultisamplePropertiesEXT);
}
return true;
}

View File

@@ -159,6 +159,9 @@ struct zink_screen {
uint32_t image_view;
uint32_t buffer_view;
} null_descriptor_hashes;
PFN_vkGetPhysicalDeviceMultisamplePropertiesEXT vk_GetPhysicalDeviceMultisamplePropertiesEXT;
PFN_vkCmdSetSampleLocationsEXT vk_CmdSetSampleLocationsEXT;
};