Mesa (master): i965/fs: Fix typo in refactor of brw_fs_reg_allocate.cpp.

Eric Anholt anholt at kemper.freedesktop.org
Fri Oct 19 18:47:24 UTC 2012


Module: Mesa
Branch: master
Commit: 804469c58d755dfa82085a0421de1671bf421f05
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=804469c58d755dfa82085a0421de1671bf421f05

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Oct 19 11:21:18 2012 -0700

i965/fs: Fix typo in refactor of brw_fs_reg_allocate.cpp.

I'm amazed that my usual warnings check didn't catch this, and that this
passed piglit.

---

 src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 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 179ef16..f87cbbc 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
@@ -174,7 +174,7 @@ int
 count_to_loop_end(fs_inst *do_inst)
 {
    int depth = 1;
-   int ip = ip;
+   int ip = 1;
    for (fs_inst *inst = (fs_inst *)do_inst->next;
         depth > 0;
         inst = (fs_inst *)inst->next) {




More information about the mesa-commit mailing list