projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51c5fc8
)
glsl: Put `sample`-qualified varyings in their own packing classes
author
Chris Forbes
<chrisf@ijw.co.nz>
Fri, 29 Nov 2013 08:28:32 +0000
(21:28 +1300)
committer
Chris Forbes
<chrisf@ijw.co.nz>
Sat, 7 Dec 2013 04:14:59 +0000
(17:14 +1300)
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/glsl/link_varyings.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/link_varyings.cpp
b/src/glsl/link_varyings.cpp
index d2a4fc82d3ca9604617f3b6c86bafdcd544c40bd..097cee5e4cb8dddecaba3a2b97f7c1cca8b02fc4 100644
(file)
--- 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;