mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
i965/fs: Add missing register allocation for 3rd sources.
Our only instruction with a 3rd source so far was linterp, and that value was never register-allocated. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
2b28fd6ca6
commit
a1bfafc5a9
1 changed files with 2 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ fs_visitor::assign_regs_trivial()
|
|||
assign_reg(hw_reg_mapping, &inst->dst, reg_width);
|
||||
assign_reg(hw_reg_mapping, &inst->src[0], reg_width);
|
||||
assign_reg(hw_reg_mapping, &inst->src[1], reg_width);
|
||||
assign_reg(hw_reg_mapping, &inst->src[2], reg_width);
|
||||
}
|
||||
|
||||
if (this->grf_used >= max_grf) {
|
||||
|
|
@ -271,6 +272,7 @@ fs_visitor::assign_regs()
|
|||
assign_reg(hw_reg_mapping, &inst->dst, reg_width);
|
||||
assign_reg(hw_reg_mapping, &inst->src[0], reg_width);
|
||||
assign_reg(hw_reg_mapping, &inst->src[1], reg_width);
|
||||
assign_reg(hw_reg_mapping, &inst->src[2], reg_width);
|
||||
}
|
||||
|
||||
ralloc_free(g);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue