radeonsi: remove always constant ballot_mask_bits from si_llvm_context_init
authorMarek Olšák <marek.olsak@amd.com>
Sat, 11 Jan 2020 01:25:28 +0000 (20:25 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 14 Jan 2020 23:46:07 +0000 (18:46 -0500)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader_internal.h
src/gallium/drivers/radeonsi/si_shader_llvm.c

index 2e4cf0884ca5e9b0c0adfb9bf0d6035c7d484112..e68bd0388459cd9b1a40901f0a20e2e02ddc2293 100644 (file)
@@ -4523,8 +4523,7 @@ si_generate_gs_copy_shader(struct si_screen *sscreen,
        shader->is_gs_copy_shader = true;
 
        si_llvm_context_init(&ctx, sscreen, compiler,
-                            si_get_wave_size(sscreen, PIPE_SHADER_VERTEX, false, false),
-                            64);
+                            si_get_wave_size(sscreen, PIPE_SHADER_VERTEX, false, false));
        ctx.shader = shader;
        ctx.type = PIPE_SHADER_VERTEX;
 
@@ -5742,7 +5741,7 @@ int si_compile_shader(struct si_screen *sscreen,
                si_dump_streamout(&sel->so);
        }
 
-       si_llvm_context_init(&ctx, sscreen, compiler, si_get_shader_wave_size(shader), 64);
+       si_llvm_context_init(&ctx, sscreen, compiler, si_get_shader_wave_size(shader));
        si_llvm_context_set_ir(&ctx, shader);
 
        memset(shader->info.vs_output_param_offset, AC_EXP_PARAM_UNDEFINED,
@@ -6091,8 +6090,7 @@ si_get_shader_part(struct si_screen *sscreen,
        struct si_shader_context ctx;
        si_llvm_context_init(&ctx, sscreen, compiler,
                             si_get_wave_size(sscreen, type, shader.key.as_ngg,
-                                             shader.key.as_es),
-                            64);
+                                             shader.key.as_es));
        ctx.shader = &shader;
        ctx.type = type;
 
index 6f27e81a6b32a345e57d43b2e8b7e61a859d5303..7b64ca3063022929df4d9f9ff301ce1a67b4d153 100644 (file)
@@ -211,8 +211,7 @@ LLVMValueRef si_llvm_bound_index(struct si_shader_context *ctx,
 void si_llvm_context_init(struct si_shader_context *ctx,
                          struct si_screen *sscreen,
                          struct ac_llvm_compiler *compiler,
-                         unsigned wave_size,
-                         unsigned ballot_mask_bits);
+                         unsigned wave_size);
 void si_llvm_context_set_ir(struct si_shader_context *ctx,
                            struct si_shader *shader);
 
index f831c7e8c1b79a27e79c2bc6025f398a222d11bf..11f5a14d121a9bd672b52c5e3fbb854ba4d571c0 100644 (file)
@@ -114,8 +114,7 @@ void si_shader_binary_clean(struct si_shader_binary *binary)
 void si_llvm_context_init(struct si_shader_context *ctx,
                          struct si_screen *sscreen,
                          struct ac_llvm_compiler *compiler,
-                         unsigned wave_size,
-                         unsigned ballot_mask_bits)
+                         unsigned wave_size)
 {
        /* Initialize the gallivm object:
         * We are only using the module, context, and builder fields of this struct.
@@ -129,7 +128,7 @@ void si_llvm_context_init(struct si_shader_context *ctx,
        ac_llvm_context_init(&ctx->ac, compiler, sscreen->info.chip_class,
                             sscreen->info.family,
                             AC_FLOAT_MODE_NO_SIGNED_ZEROS_FP_MATH,
-                            wave_size, ballot_mask_bits);
+                            wave_size, 64);
 
        ctx->voidt = LLVMVoidTypeInContext(ctx->ac.context);
        ctx->i1 = LLVMInt1TypeInContext(ctx->ac.context);