Hello. I am very new to this mailing list so if I've missed something please nicely point it out.
I am reading the source code of the Mesa Cell driver (branch "gallium-0.2") and get really confused. If I read correctly, there are two paths converting TGSI tokens to LLVM IR. The first one I called "SOA path" (please correct me if a name already exists), implemented in tgsi_to_llvmir(), using InstructionSoa and StorageSoa classes. If I understand correct, this rendering path is for the processor with SIMD ISA (quad), like general CPU, Cell, right? The second one I refer as non-SOA path, implemented in tgsi_to_llvm(), which uses the "non-SOA" version of class Instruction and Storage. This one supports sub-programs, function calls, loops, etc. But the second path is never used in the source code (tgsi_to_llvm() is not called anywhere). What is the status of this path? Is it still used and actively maintained? PS: I am converting vs_3_0 tokens to LLVM IR and I think I should reference the second path, but I am so confused about the function arguments of the llvm::Function. How v#, c#, r# are passed to the shader and treated/layout in the LLVM IR? Alex.
------------------------------------------------------------------------------
_______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev