diff --git a/src/gallium/drivers/r600/sfn/sfn_shader.h b/src/gallium/drivers/r600/sfn/sfn_shader.h index 131fe50623e..2b53cf61cfa 100644 --- a/src/gallium/drivers/r600/sfn/sfn_shader.h +++ b/src/gallium/drivers/r600/sfn/sfn_shader.h @@ -403,7 +403,7 @@ private: InstructionChain m_chain_instr; std::list> m_loops; int m_control_flow_depth{0}; - std::list m_register_allocations; + ValueFactory::nir_intrinsic_instr_alloc m_register_allocations; }; } // namespace r600 diff --git a/src/gallium/drivers/r600/sfn/sfn_valuefactory.cpp b/src/gallium/drivers/r600/sfn/sfn_valuefactory.cpp index 1c055b828a9..61749190859 100644 --- a/src/gallium/drivers/r600/sfn/sfn_valuefactory.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_valuefactory.cpp @@ -33,7 +33,7 @@ ValueFactory::set_virtual_register_base(int base) } bool -ValueFactory::allocate_registers(const std::list& regs) +ValueFactory::allocate_registers(const nir_intrinsic_instr_alloc& regs) { struct array_entry { unsigned index; diff --git a/src/gallium/drivers/r600/sfn/sfn_valuefactory.h b/src/gallium/drivers/r600/sfn/sfn_valuefactory.h index 19f87ff705c..a8a70600e13 100644 --- a/src/gallium/drivers/r600/sfn/sfn_valuefactory.h +++ b/src/gallium/drivers/r600/sfn/sfn_valuefactory.h @@ -204,9 +204,11 @@ public: int new_register_index(); + using nir_intrinsic_instr_alloc = + std::list>; /* Allocate registers */ - bool allocate_registers(const std::list& regs); + bool allocate_registers(const nir_intrinsic_instr_alloc& regs); PRegister allocate_pinned_register(int sel, int chan); RegisterVec4 allocate_pinned_vec4(int sel, bool is_ssa);