Created attachment 127812 [details] [review] Mesa part of fix LLVM patch https://reviews.llvm.org/D26348 together with the attached patch for Mesa fix this bug.