From 5d326fa963d4af85af50687ecc7d0eb0a8989fda Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 29 Nov 2013 21:28:32 +1300 Subject: glsl: Put `sample`-qualified varyings in their own packing classes Signed-off-by: Chris Forbes Reviewed-by: Francisco Jerez --- src/glsl/link_varyings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glsl') diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index d2a4fc82d3c..097cee5e4cb 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp @@ -887,7 +887,7 @@ varying_matches::compute_packing_class(ir_variable *var) * * Therefore, the packing class depends only on the interpolation type. */ - unsigned packing_class = var->centroid ? 1 : 0; + unsigned packing_class = var->centroid | (var->sample << 1); packing_class *= 4; packing_class += var->interpolation; return packing_class; -- cgit v1.2.3