From 627371fe014fd2d1654592be07da498f3af3b08c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 5 Apr 2021 12:02:39 -0400 Subject: [PATCH] zink: export PIPE_CAP_TGSI_BALLOT Reviewed-by: Dave Airlie Part-of: --- docs/features.txt | 2 +- src/gallium/drivers/zink/zink_screen.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index 5ee8971..b3ee73b 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -306,7 +306,7 @@ Khronos, ARB, and OES extensions that are not part of any OpenGL or OpenGL ES ve GL_ARB_robustness_isolation not started GL_ARB_sample_locations DONE (nvc0, zink) GL_ARB_seamless_cubemap_per_texture DONE (etnaviv/SEAMLESS_CUBE_MAP, freedreno, i965, nvc0, r600, radeonsi, softpipe, swr, virgl) - GL_ARB_shader_ballot DONE (i965/gen8+, nvc0, radeonsi) + GL_ARB_shader_ballot DONE (i965/gen8+, nvc0, radeonsi, zink) GL_ARB_shader_clock DONE (i965/gen7+, nv50, nvc0, r600, radeonsi, virgl, zink) GL_ARB_shader_stencil_export DONE (i965/gen9+, r600, radeonsi, softpipe, llvmpipe, swr, virgl, panfrost, zink) GL_ARB_shader_viewport_layer_array DONE (i965/gen6+, nvc0, radeonsi, zink) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 19893dd..ef8da6d 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -409,6 +409,9 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_POINT_SPRITE: return 1; + case PIPE_CAP_TGSI_BALLOT: + return screen->vk_version >= VK_MAKE_VERSION(1,2,0) && screen->info.props11.subgroupSize <= 64; + case PIPE_CAP_SAMPLE_SHADING: return screen->info.feats.features.sampleRateShading; -- 2.7.4