diff options
author | Eric Anholt <eric@anholt.net> | 2012-02-07 01:09:59 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2012-02-10 17:08:04 -0800 |
commit | a1bfafc5a96012c14db9b0d28223ab54feae131c (patch) | |
tree | cf66eeaa14a244e7ff64dfe7f47115d79bde19e3 /src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | |
parent | 2b28fd6ca603df40a5d02aac4035eced3a1d079a (diff) |
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index 0d1712e9d5a..45f83f3dbcb 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp @@ -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); |