diff options
author | Ian Romanick <idr@us.ibm.com> | 2008-03-13 13:03:22 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2008-03-13 13:10:16 -0700 |
commit | 3115e8c968b51d22962b1b92b13946956dddd98e (patch) | |
tree | 435fd1e4d5c63d2e1993a633ca771210843296cf /src/gallium/drivers/cell/ppu/cell_state_shader.c | |
parent | b12a28db96d3bc7f01b6cdc9ee909f95a8c9ccc2 (diff) |
cell: Fix to work with commit fa9e7e9a8debb68611909ac2ffab527c6c39a3e5
Diffstat (limited to 'src/gallium/drivers/cell/ppu/cell_state_shader.c')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_state_shader.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_state_shader.c b/src/gallium/drivers/cell/ppu/cell_state_shader.c index 269a5c15ba..fb2e940348 100644 --- a/src/gallium/drivers/cell/ppu/cell_state_shader.c +++ b/src/gallium/drivers/cell/ppu/cell_state_shader.c @@ -54,27 +54,7 @@ cell_create_fs_state(struct pipe_context *pipe, state->shader = *templ; -#if 0 - if (cell->dump_fs) { - tgsi_dump(state->shader.tokens, 0); - } - -#if defined(__i386__) || defined(__386__) - if (cell->use_sse) { - x86_init_func( &state->sse2_program ); - tgsi_emit_sse2_fs( state->shader.tokens, &state->sse2_program ); - } -#endif - -#ifdef MESA_LLVM - state->llvm_prog = 0; - if (!gallivm_global_cpu_engine()) { - gallivm_cpu_engine_create(state->llvm_prog); - } - else - gallivm_cpu_jit_compile(gallivm_global_cpu_engine(), state->llvm_prog); -#endif -#endif + tgsi_scan_shader(templ->tokens, &state->info); return state; } @@ -113,6 +93,7 @@ cell_create_vs_state(struct pipe_context *pipe, return NULL; state->shader = *templ; + tgsi_scan_shader(templ->tokens, &state->info); state->draw_data = draw_create_vertex_shader(cell->draw, &state->shader); if (state->draw_data == NULL) { |