Mesa (main): zink: print runtime warning on missing EXT_border_color_swizzle
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 17 01:46:16 UTC 2022
Module: Mesa
Branch: main
Commit: d27576563063b76031058c776ca71656e9111f86
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d27576563063b76031058c776ca71656e9111f86
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Tue Jun 14 09:56:00 2022 -0400
zink: print runtime warning on missing EXT_border_color_swizzle
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17029>
---
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 ee505a46c87..136375c21ff 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -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 */
More information about the mesa-commit
mailing list