From 2f46495ac03729bb35fdc243393a165b0c9ad045 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 21 Jun 2022 13:00:31 -0400 Subject: [PATCH] zink: don't warn for missing customBorderColorWithoutFormat on turnip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/zink/zink_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index a34d83ca852..55525229d71 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -373,7 +373,8 @@ 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) { + if (!screen->info.border_color_feats.customBorderColorWithoutFormat && + screen->info.driver_props.driverID != VK_DRIVER_ID_MESA_TURNIP) { static bool warned = false; warn_missing_feature(warned, "customBorderColorWithoutFormat"); }