aco: Constify radv_nir_compiler_options in isel
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 30 Oct 2019 10:54:43 +0000 (11:54 +0100)
committerConnor Abbott <cwabbott0@gmail.com>
Mon, 25 Nov 2019 13:17:51 +0000 (14:17 +0100)
It's already const for everything else.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_instruction_selection_setup.cpp
src/amd/compiler/aco_ir.h

index 3bc866bc056279c9b2ea304c4f69a164ae957ad8..23629ffe22b2d05bbbd8bc87d576f7fa5e4b4fab 100644 (file)
@@ -7721,7 +7721,7 @@ void select_program(Program *program,
                     struct nir_shader *const *shaders,
                     ac_shader_config* config,
                     struct radv_shader_info *info,
-                    struct radv_nir_compiler_options *options)
+                    const struct radv_nir_compiler_options *options)
 {
    isel_context ctx = setup_isel_context(program, shader_count, shaders, config, info, options);
 
index 807ce74686839cddcb5d5dd1894036207589a8da..1c672e3eb31e82caead29e87c91899b558862828 100644 (file)
@@ -70,7 +70,7 @@ struct vs_output_state {
 };
 
 struct isel_context {
-   struct radv_nir_compiler_options *options;
+   const struct radv_nir_compiler_options *options;
    Program *program;
    nir_shader *shader;
    uint32_t constant_data_offset;
@@ -1179,7 +1179,7 @@ setup_isel_context(Program* program,
                    struct nir_shader *const *shaders,
                    ac_shader_config* config,
                    radv_shader_info *info,
-                   radv_nir_compiler_options *options)
+                   const radv_nir_compiler_options *options)
 {
    program->stage = 0;
    for (unsigned i = 0; i < shader_count; i++) {
index 59e77feffe52fe338a52c44f38576998c9272d81..370aa5a03c28f5d6975a4a019038883b0b04a75c 100644 (file)
@@ -1209,7 +1209,7 @@ void select_program(Program *program,
                     struct nir_shader *const *shaders,
                     ac_shader_config* config,
                     struct radv_shader_info *info,
-                    struct radv_nir_compiler_options *options);
+                    const struct radv_nir_compiler_options *options);
 
 void lower_wqm(Program* program, live& live_vars,
                const struct radv_nir_compiler_options *options);