cell: temporarily disable freeing of tiled texture memory
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 20 Oct 2008 15:35:18 +0000 (09:35 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 20 Oct 2008 15:35:18 +0000 (09:35 -0600)
Allows glDrawPixels to work for now...

src/gallium/drivers/cell/ppu/cell_texture.c

index 230e192573324539437d381e28b85ebf479ea386..9c6741f1bc1c46f3eb04c6ce4c31367001a39f87 100644 (file)
@@ -147,7 +147,13 @@ cell_texture_release(struct pipe_screen *screen,
 
       for (i = 0; i < CELL_MAX_TEXTURE_LEVELS; i++) {
          if (ct->tiled_data[i]) {
+            /* XXX need to use a fenced buffer for tiled data so that
+             * it's properly freed after rendering has completed.
+             * Disabling this free() allows glDrawPixels to work for now.
+             */
+#if 0
             align_free(ct->tiled_data[i]);
+#endif
          }
       }