summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/llvm/instructionssoa.cpp
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2008-02-15 00:36:18 -0500
committerZack Rusin <zack@tungstengraphics.com>2008-02-15 01:17:17 -0500
commit4593be34b2a6e494f0e476c8aa8e1d2633fffd47 (patch)
tree485a79634e70fe0a0f1300241ee257bb8ec75946 /src/mesa/pipe/llvm/instructionssoa.cpp
parentcf51d5c4210d3301c96947e6e80e71c252bc04d1 (diff)
vastly simplify indexing
Diffstat (limited to 'src/mesa/pipe/llvm/instructionssoa.cpp')
-rw-r--r--src/mesa/pipe/llvm/instructionssoa.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/mesa/pipe/llvm/instructionssoa.cpp b/src/mesa/pipe/llvm/instructionssoa.cpp
index 9c38c64bd1..a4d5046637 100644
--- a/src/mesa/pipe/llvm/instructionssoa.cpp
+++ b/src/mesa/pipe/llvm/instructionssoa.cpp
@@ -47,22 +47,10 @@ std::vector<llvm::Value*> InstructionsSoa::arl(const std::vector<llvm::Value*> i
llvm::Value *x1 = m_builder.CreateExtractElement(in[0],
m_storage->constantInt(0),
name("extractX"));
- llvm::Value *x2 = m_builder.CreateExtractElement(in[0],
- m_storage->constantInt(1),
- name("extractX"));
- llvm::Value *x3 = m_builder.CreateExtractElement(in[0],
- m_storage->constantInt(2),
- name("extractX"));
- llvm::Value *x4 = m_builder.CreateExtractElement(in[0],
- m_storage->constantInt(3),
- name("extractX"));
//cast it to an unsigned int
x1 = m_builder.CreateFPToUI(x1, IntegerType::get(32), name("x1IntCast"));
- x2 = m_builder.CreateFPToUI(x2, IntegerType::get(32), name("x2IntCast"));
- x3 = m_builder.CreateFPToUI(x3, IntegerType::get(32), name("x3IntCast"));
- x4 = m_builder.CreateFPToUI(x4, IntegerType::get(32), name("x4IntCast"));
- res[0] = vectorFromVals(x1, x2, x3, x4);
+ res[0] = x1;//vectorFromVals(x1, x2, x3, x4);
//only x is valid. the others shouldn't be necessary
/*
res[1] = Constant::getNullValue(m_floatVecType);