aco: validate ir for prologs and after lower_to_hw_instr
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23507>
This commit is contained in:
@@ -195,6 +195,7 @@ aco_postprocess_shader(const struct aco_compiler_options* options,
|
||||
|
||||
/* Lower to HW Instructions */
|
||||
aco::lower_to_hw_instr(program.get());
|
||||
validate(program.get());
|
||||
|
||||
/* Insert Waitcnt */
|
||||
aco::insert_wait_states(program.get());
|
||||
@@ -276,6 +277,7 @@ aco_compile_rt_prolog(const struct aco_compiler_options* options,
|
||||
program->debug.private_data = NULL;
|
||||
|
||||
aco::select_rt_prolog(program.get(), &config, options, info, in_args, out_args);
|
||||
validate(program.get());
|
||||
aco::insert_wait_states(program.get());
|
||||
aco::insert_NOPs(program.get());
|
||||
if (program->gfx_level >= GFX10)
|
||||
@@ -316,6 +318,7 @@ aco_compile_vs_prolog(const struct aco_compiler_options* options,
|
||||
|
||||
/* create IR */
|
||||
aco::select_vs_prolog(program.get(), pinfo, &config, options, info, args);
|
||||
validate(program.get());
|
||||
aco::insert_NOPs(program.get());
|
||||
|
||||
if (options->dump_shader)
|
||||
|
||||
Reference in New Issue
Block a user