Mesa (gallium-0.2): cell: remove old code

Brian Paul brianp at kemper.freedesktop.org
Tue Oct 7 22:18:34 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: e561058641ca39a676b219a056f889ad99240029
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e561058641ca39a676b219a056f889ad99240029

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Tue Oct  7 14:58:05 2008 -0600

cell: remove old code

---

 src/gallium/drivers/cell/ppu/cell_state_emit.c |   26 ------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)

diff --git a/src/gallium/drivers/cell/ppu/cell_state_emit.c b/src/gallium/drivers/cell/ppu/cell_state_emit.c
index 69c1e4d..a36fd3a 100644
--- a/src/gallium/drivers/cell/ppu/cell_state_emit.c
+++ b/src/gallium/drivers/cell/ppu/cell_state_emit.c
@@ -165,36 +165,10 @@ cell_emit_state(struct cell_context *cell)
    if (cell->dirty & (CELL_NEW_FRAMEBUFFER |
                       CELL_NEW_DEPTH_STENCIL |
                       CELL_NEW_BLEND)) {
-#if 0
-      /* XXX we don't want to always do codegen here.  We should have
-       * a hash/lookup table to cache previous results...
-       */
-      struct cell_command_fragment_ops *fops
-            = cell_batch_alloc(cell, sizeof(*fops));
-      struct spe_function spe_code;
-
-      /* Prepare the buffer that will hold the generated code. */
-      spe_init_func(&spe_code, SPU_MAX_FRAGMENT_OPS_INSTS * SPE_INST_SIZE);
-
-      /* generate new code */
-      cell_gen_fragment_function(cell, &spe_code);
-
-      /* put the new code into the batch buffer */
-      fops->opcode = CELL_CMD_STATE_FRAGMENT_OPS;
-      memcpy(&fops->code, spe_code.store,
-             SPU_MAX_FRAGMENT_OPS_INSTS * SPE_INST_SIZE);
-      fops->dsa = *cell->depth_stencil;
-      fops->blend = *cell->blend;
-
-      /* free codegen buffer */
-      spe_release_func(&spe_code);
-#else
       struct cell_command_fragment_ops *fops, *fops_cmd;
       fops_cmd = cell_batch_alloc(cell, sizeof(*fops_cmd));
       fops = lookup_fragment_ops(cell);
       memcpy(fops_cmd, fops, sizeof(*fops));
-#endif
-
    }
 
    if (cell->dirty & CELL_NEW_SAMPLER) {




More information about the mesa-commit mailing list