zink: print runtime warning on missing EXT_border_color_swizzle

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17029>
This commit is contained in:
Mike Blumenkrantz 2022-06-14 09:56:00 -04:00 committed by Marge Bot
parent 46b4017b37
commit d275765630

View File

@ -377,6 +377,10 @@ zink_create_sampler_state(struct pipe_context *pctx,
}
if (screen->info.have_EXT_custom_border_color &&
screen->info.border_color_feats.customBorderColorWithoutFormat) {
if (!screen->info.have_EXT_border_color_swizzle) {
static bool warned = false;
warn_missing_feature(warned, "VK_EXT_border_color_swizzle");
}
cbci.sType = VK_STRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT;
cbci.format = VK_FORMAT_UNDEFINED;
/* these are identical unions */