Mesa (main): zink: fix PIPE_CAP_TGSI_BALLOT export conditional
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 8 03:28:26 UTC 2022
Module: Mesa
Branch: main
Commit: e38c13830fcbe8f3784dc3adbd736ea72b67fdea
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e38c13830fcbe8f3784dc3adbd736ea72b67fdea
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Jan 31 10:43:54 2022 -0500
zink: fix PIPE_CAP_TGSI_BALLOT export conditional
this requires VK_EXT_shader_subgroup_ballot
cc: mesa-stable
fixes (lavapipe):
KHR-GL46.shader_ballot_tests.ShaderBallotAvailability
KHR-GL46.shader_ballot_tests.ShaderBallotFunctionRead
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14858>
---
src/gallium/drivers/zink/zink_screen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index bd1d3a09f5f..27b32439ed7 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -468,7 +468,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return 1;
case PIPE_CAP_TGSI_BALLOT:
- return screen->vk_version >= VK_MAKE_VERSION(1,2,0) && screen->info.props11.subgroupSize <= 64;
+ return screen->info.have_vulkan12 && screen->info.have_EXT_shader_subgroup_ballot && screen->info.props11.subgroupSize <= 64;
case PIPE_CAP_SAMPLE_SHADING:
return screen->info.feats.features.sampleRateShading;
More information about the mesa-commit
mailing list