aco: Constify radv_nir_compiler_options in isel
It's already const for everything else. Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user