diff options
author | Kenneth Graunke <[email protected]> | 2011-08-26 12:05:07 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-08-29 11:39:41 -0700 |
commit | d28a3bd4bf25157aff5379a003bbf4a66157ed06 (patch) | |
tree | 7f1dc00e2f9cd825c2060da3ab8c24d6a16fa71f /src/mesa/drivers/dri/i965/brw_fs.h | |
parent | 55d232a81566cf7ab8855c42e2ef1a280276a04c (diff) |
i965/fs: Revert "Avoid generating MOVs for assignments for expressions."
This reverts commit 53c89c67f33639afef951e178f93f4e29acc5d53, along with
the subsequent this->result = reg_undef additions it required.
Both Eric and I agree that the way he did this is really fragile; if you
forget to add this->result = reg_undef before calling accept(), it may
end up using the same register for two separate things, breaking things
in strange and mysterious ways.
The next commit will port over the new VS backend's method for solving
this problem, which is simpler, less intrusive, and still manages to
avoid MOVs in the common case.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 10f45f30fe9..e22d3d31d76 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -568,10 +568,7 @@ public: bool failed; char *fail_msg; - /* On entry to a visit() method, this is the storage for the - * result. On exit, the visit() called may have changed it, in - * which case the parent must use the new storage instead. - */ + /* Result of last visit() method. */ fs_reg result; fs_reg pixel_x; |