OSDN Git Service

i965/fs: Fix typo in refactor of brw_fs_reg_allocate.cpp.
authorEric Anholt <eric@anholt.net>
Fri, 19 Oct 2012 18:21:18 +0000 (11:21 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 19 Oct 2012 18:47:01 +0000 (11:47 -0700)
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

index 179ef16..f87cbbc 100644 (file)
@@ -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) {