nv50: don't look for unfreed temps in free_nv50_pc
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 23 May 2009 13:17:03 +0000 (15:17 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 28 May 2009 06:06:23 +0000 (16:06 +1000)
Since we stopped using alloc_temp to get hw indices for FP attrs
there shouldn't be any non-deallocated temps left.

src/gallium/drivers/nv50/nv50_program.c

index 15d7ab0..ea519e0 100644 (file)
@@ -1981,8 +1981,6 @@ out_err:
 static void
 free_nv50_pc(struct nv50_pc *pc)
 {
-       unsigned i;
-
        if (pc->immd)
                FREE(pc->immd);
        if (pc->param)
@@ -1994,12 +1992,6 @@ free_nv50_pc(struct nv50_pc *pc)
        if (pc->temp)
                FREE(pc->temp);
 
-       for (i = 0; i < NV50_SU_MAX_TEMP; i++) {
-               /* deallocate fragment program attributes */
-               if (pc->r_temp[i] && pc->r_temp[i]->index == -1)
-                       FREE(pc->r_temp[i]);
-       }
-
        FREE(pc);
 }