d3d1x: fix cf analysis
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 11:24:55 +0000 (13:24 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 11:24:55 +0000 (13:24 +0200)
src/gallium/state_trackers/d3d1x/d3d1xshader/src/tpf_analyze.cpp

index a100ee5c3f523448231084c9109c2caf17061691..a381564ada113e0e0e7e0e79be4dd80918da811d 100644 (file)
@@ -35,8 +35,8 @@ bool tpf_link_cf_insns(tpf_program& program)
        if(program.cf_insn_linked.size())
                return true;
 
-       program.cf_insn_linked.resize(program.insns.size());
        std::vector<int> cf_insn_linked;
+       cf_insn_linked.resize(program.insns.size());
        memset(&cf_insn_linked[0], 0xff, cf_insn_linked.size() * sizeof(int));
        std::vector<unsigned> cf_stack;
        for(unsigned insn_num = 0; insn_num < program.insns.size(); ++insn_num)