From 1a22b919c17210bbd6821beb02ae4e9cb23980ec Mon Sep 17 00:00:00 2001 From: GregF Date: Wed, 29 Oct 2014 11:05:05 -0600 Subject: [PATCH] Add VERT_ATTRIB_GENERIC0 to explicit locations on vertex attributes. --- icd/intel/compiler/shader/glsl_glass_backend_translator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/icd/intel/compiler/shader/glsl_glass_backend_translator.cpp b/icd/intel/compiler/shader/glsl_glass_backend_translator.cpp index 7d9a4cb..cdd497d 100644 --- a/icd/intel/compiler/shader/glsl_glass_backend_translator.cpp +++ b/icd/intel/compiler/shader/glsl_glass_backend_translator.cpp @@ -3219,6 +3219,8 @@ void MesaGlassTranslator::setIoParameters(ir_variable* ioVar, const llvm::MDNode if ((manager->getStage() == EShLangFragment) && isOutput) ioVar->data.location = layoutLocation + FRAG_RESULT_DATA0; + else if ((manager->getStage() == EShLangVertex) && !isOutput) + ioVar->data.location = layoutLocation + VERT_ATTRIB_GENERIC0; else ioVar->data.location = layoutLocation + VARYING_SLOT_VAR0; } -- 2.7.4