radv/llvm: fix using Wave32
The Wave32 pass manager has been removed a while ago.
Fixes: 94a1f45e15
("ac/llvm: set target features per function instead of per target machine")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12833>
This commit is contained in:
parent
9bf977ffa5
commit
5eda8e5fe9
|
@ -28,8 +28,7 @@ class radv_llvm_per_thread_info {
|
|||
public:
|
||||
radv_llvm_per_thread_info(enum radeon_family arg_family,
|
||||
enum ac_target_machine_options arg_tm_options, unsigned arg_wave_size)
|
||||
: family(arg_family), tm_options(arg_tm_options), wave_size(arg_wave_size), passes(NULL),
|
||||
passes_wave32(NULL)
|
||||
: family(arg_family), tm_options(arg_tm_options), wave_size(arg_wave_size), passes(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -52,8 +51,7 @@ class radv_llvm_per_thread_info {
|
|||
|
||||
bool compile_to_memory_buffer(LLVMModuleRef module, char **pelf_buffer, size_t *pelf_size)
|
||||
{
|
||||
struct ac_compiler_passes *p = wave_size == 32 ? passes_wave32 : passes;
|
||||
return ac_compile_module_to_elf(p, module, pelf_buffer, pelf_size);
|
||||
return ac_compile_module_to_elf(passes, module, pelf_buffer, pelf_size);
|
||||
}
|
||||
|
||||
bool is_same(enum radeon_family arg_family, enum ac_target_machine_options arg_tm_options,
|
||||
|
@ -70,7 +68,6 @@ class radv_llvm_per_thread_info {
|
|||
enum ac_target_machine_options tm_options;
|
||||
unsigned wave_size;
|
||||
struct ac_compiler_passes *passes;
|
||||
struct ac_compiler_passes *passes_wave32;
|
||||
};
|
||||
|
||||
/* we have to store a linked list per thread due to the possiblity of multiple gpus being required */
|
||||
|
|
Loading…
Reference in New Issue