Mesa (main): zink: warn on missing customBorderColorWithoutFormat
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Jun 11 13:56:44 UTC 2022
Module: Mesa
Branch: main
Commit: d64fbb88862ba17bcece83f01a84734d8c035e4b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d64fbb88862ba17bcece83f01a84734d8c035e4b
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Fri Jun 10 16:47:26 2022 -0400
zink: warn on missing customBorderColorWithoutFormat
this is required
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16982>
---
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 e3963ec254f..165e705e186 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;
More information about the mesa-commit
mailing list