Mesa (master): zink: support format queries for VK_EXT_sampler_filter_minmax
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 15 12:44:11 UTC 2021
Module: Mesa
Branch: master
Commit: 22e1ed57221288e77ed58cf9f9a7f9a2e140d54f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=22e1ed57221288e77ed58cf9f9a7f9a2e140d54f
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Sun Apr 4 18:44:18 2021 -0400
zink: support format queries for VK_EXT_sampler_filter_minmax
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10248>
---
src/gallium/drivers/zink/zink_screen.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 7b2c0d3822d..f93bcdb3f96 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -876,6 +876,9 @@ zink_is_format_supported(struct pipe_screen *pscreen,
!(props.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT))
return false;
+ if (bind & PIPE_BIND_SAMPLER_REDUCTION_MINMAX)
+ return props.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT;
+
if ((bind & PIPE_BIND_SAMPLER_VIEW) || (bind & PIPE_BIND_RENDER_TARGET)) {
/* if this is a 3-component texture, force gallium to give us 4 components by rejecting this one */
const struct util_format_description *desc = util_format_description(format);
More information about the mesa-commit
mailing list