diff options
author | Chris Forbes <chrisf@ijw.co.nz> | 2013-11-29 21:28:32 +1300 |
---|---|---|
committer | Chris Forbes <chrisf@ijw.co.nz> | 2013-12-07 17:14:59 +1300 |
commit | 5d326fa963d4af85af50687ecc7d0eb0a8989fda (patch) | |
tree | 0400586454a02a7928709e1ffbfc21c04d3d9a0d /src/glsl/link_varyings.cpp | |
parent | 51c5fc85e11858b11cf2a3c89ff8052fbc67faab (diff) | |
download | external_mesa3d-5d326fa963d4af85af50687ecc7d0eb0a8989fda.zip external_mesa3d-5d326fa963d4af85af50687ecc7d0eb0a8989fda.tar.gz external_mesa3d-5d326fa963d4af85af50687ecc7d0eb0a8989fda.tar.bz2 |
glsl: Put `sample`-qualified varyings in their own packing classes
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/glsl/link_varyings.cpp')
-rw-r--r-- | src/glsl/link_varyings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index d2a4fc8..097cee5 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; |