jvesely added a comment. The problems with dynamic indexing is caused by using the same ID for constant buffer (AS:8) and vtx fetches (AS:7). switching vtx fetches to use vtxid 3 fixes the problem Repository: rL LLVM http://reviews.llvm.org/D21622