Add the starting user varying slot number (24) to any explicit location
authorGregF <greg@LunarG.com>
Wed, 22 Oct 2014 20:37:21 +0000 (14:37 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Fri, 31 Oct 2014 21:29:18 +0000 (15:29 -0600)
passed by user on varying.

icd/intel/compiler/shader/glsl_glass_backend_translator.cpp

index 19d625f..bff036f 100644 (file)
@@ -3216,7 +3216,7 @@ void MesaGlassTranslator::setIoParameters(ir_variable* ioVar, const llvm::MDNode
 
       if (layoutLocation >= 0 && layoutLocation < gla::MaxUserLayoutLocation) {
          ioVar->data.explicit_location = true;
-         ioVar->data.location          = layoutLocation;
+         ioVar->data.location          = layoutLocation + VARYING_SLOT_VAR0;
       }
    }
 }