radv/gfx10: fix required ballot size with VK_EXT_subgroup_size_control
[mesa.git] / src / amd / vulkan / radv_nir_to_llvm.c
index d833bc2477dc5b945d5f28f8742898782cfe241b..7cb8deddc105f5ca45437317d974b01341e03c61 100644 (file)
@@ -3925,7 +3925,8 @@ LLVMModuleRef ac_translate_nir_to_llvm(struct ac_llvm_compiler *ac_llvm,
 
        ac_llvm_context_init(&ctx.ac, ac_llvm, args->options->chip_class,
                             args->options->family, float_mode,
-                            args->shader_info->wave_size, 64);
+                            args->shader_info->wave_size,
+                            args->shader_info->ballot_bit_size);
        ctx.context = ctx.ac.context;
 
        ctx.max_workgroup_size = 0;