#include "aco_ir.h"
#include "vulkan/radv_shader.h"
#include "vulkan/radv_shader_args.h"
-#include "c11/threads.h"
-#include "util/debug.h"
#include <iostream>
#include <sstream>
static void validate(aco::Program *program)
{
- if (!(aco::debug_flags & aco::DEBUG_VALIDATE))
+ if (!(aco::debug_flags & aco::DEBUG_VALIDATE_IR))
return;
- bool is_valid = aco::validate(program, stderr);
+ bool is_valid = aco::validate_ir(program);
assert(is_valid);
}
aco_print_program(program.get(), stderr);
}
- if (aco::validate_ra(program.get(), args->options, stderr)) {
+ if (aco::validate_ra(program.get(), args->options)) {
std::cerr << "Program after RA validation failure:\n";
aco_print_program(program.get(), stderr);
abort();