OSDN Git Service

gallium: reorganize fragment shader execution, unbreak sse
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 15 Feb 2008 09:31:22 +0000 (09:31 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 15 Feb 2008 09:31:22 +0000 (09:31 +0000)
commitc04a7f8929d674971a472ffa4d3a31200c22aa5a
treeea06d63c3ed61311ee5bf2e7e8a49bbf83a55a07
parentfa9c160389ffc6d7a20773b77c937193f30339d8
gallium: reorganize fragment shader execution, unbreak sse

This is probably going to get further reworked in the near future.

Right now there's a new interface wrapped around each shader execution
mode - exec, sse2, llvm.  The llvm code was disabled already and has
just been moved as-is to a new file, whereas the sse2 and exec code is
actually enabled.

The way the interfaces has turned out suggests to me that the correct
approach is to actually have each shader include a pointer to a quad stage
which will do a better job of encapsulating the execution environment than
what I have here -- that's a second step however.
12 files changed:
src/mesa/pipe/draw/draw_vertex_shader.c
src/mesa/pipe/softpipe/Makefile
src/mesa/pipe/softpipe/sp_context.h
src/mesa/pipe/softpipe/sp_fs_exec.c [new file with mode: 0644]
src/mesa/pipe/softpipe/sp_fs_llvm.c [new file with mode: 0644]
src/mesa/pipe/softpipe/sp_fs_sse.c [new file with mode: 0644]
src/mesa/pipe/softpipe/sp_quad_fs.c
src/mesa/pipe/softpipe/sp_state.h
src/mesa/pipe/softpipe/sp_state_fs.c
src/mesa/pipe/tgsi/exec/tgsi_exec.c
src/mesa/pipe/tgsi/exec/tgsi_exec.h
src/mesa/pipe/tgsi/exec/tgsi_sse2.c