radv/gfx10: fix required subgroup size with VK_EXT_subgroup_size_control
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 16 Mar 2020 16:29:33 +0000 (17:29 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Mar 2020 12:45:01 +0000 (12:45 +0000)
commit672d10619980687acec329742f055f7f3796c1b8
tree8fb95245281ad891950da233e1a11e0e3d04d73b
parent46e8ba1344e840f9406537ae73c841a357278924
radv/gfx10: fix required subgroup size with VK_EXT_subgroup_size_control

If compute shaders require a specific subgroup size (ie. Wave32),
we have to return the correct one.

Fixes dEQP-VK.subgroups.size_control.compute.required_subgroup_size_*.

Fixes: fb07fd4e6cb ("radv: implement VK_EXT_subgroup_size_control")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4215>
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.h