switch (prog->type) {
case GALLIVM_VS:
- func = mod->getFunction("run_vertex_shader");
+ func = mod->getFunction("vs_shader");
break;
case GALLIVM_FS:
- func = mod->getFunction("run_fragment_shader");
+ func = mod->getFunction("fs_shader");
break;
default:
assert(!"Unknown shader type!");
std::vector<llvm::Value*> res(4);
res[0] = element(m_input, idx, 0);
- res[1] = element(m_input, idx, 0);
- res[2] = element(m_input, idx, 0);
- res[3] = element(m_input, idx, 0);
+ res[1] = element(m_input, idx, 1);
+ res[2] = element(m_input, idx, 2);
+ res[3] = element(m_input, idx, 3);
return res;
}
std::vector<llvm::Value*> res(4);
res[0] = element(m_output, idx, 0);
- res[1] = element(m_output, idx, 0);
- res[2] = element(m_output, idx, 0);
- res[3] = element(m_output, idx, 0);
+ res[1] = element(m_output, idx, 1);
+ res[2] = element(m_output, idx, 2);
+ res[3] = element(m_output, idx, 3);
return res;
}