nvc0: add missing break statements in constant_operand
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 15 Feb 2011 20:36:57 +0000 (21:36 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 16 Feb 2011 14:45:31 +0000 (15:45 +0100)
src/gallium/drivers/nvc0/nvc0_pc_optimize.c

index 53010f8bd50bd93ca056cce51097a8a1195bc47e..12a31493c757599bf7916538e3677d064e636dc4 100644 (file)
@@ -544,6 +544,7 @@ constant_operand(struct nv_pc *pc,
          nv_reference(pc, nvi, s, nvi->src[t]->value);
          nvi->src[s]->mod = nvi->src[t]->mod;
       }
+      break;
    case NV_OP_ADD_F32:
       if (u.u32 == 0) {
          switch (nvi->src[t]->mod) {
@@ -563,6 +564,7 @@ constant_operand(struct nv_pc *pc,
          if (nvi->opcode != NV_OP_CVT)
             nvi->src[0]->mod = 0;
       }
+      break;
    case NV_OP_ADD_B32:
       if (u.u32 == 0) {
          assert(nvi->src[t]->mod == 0);