From d64fbb88862ba17bcece83f01a84734d8c035e4b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 10 Jun 2022 16:47:26 -0400 Subject: [PATCH] zink: warn on missing customBorderColorWithoutFormat this is required Reviewed-by: Adam Jackson Part-of: --- src/gallium/drivers/zink/zink_context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index e3963ec..165e705 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -369,6 +369,10 @@ zink_create_sampler_state(struct pipe_context *pctx, sci.borderColor = get_border_color(&state->border_color, is_integer, need_custom); if (sci.borderColor > VK_BORDER_COLOR_INT_OPAQUE_WHITE && need_custom) { + if (!screen->info.border_color_feats.customBorderColorWithoutFormat) { + static bool warned = false; + warn_missing_feature(warned, "customBorderColorWithoutFormat"); + } if (screen->info.have_EXT_custom_border_color && screen->info.border_color_feats.customBorderColorWithoutFormat) { cbci.sType = VK_STRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT; -- 2.7.4