diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-11-12 16:06:35 -0500 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-11-12 16:13:17 -0500 |
commit | 34c43c43ec74db269875209b7156b890aedf1fbb (patch) | |
tree | f6645e37169bcafada496c963de2889dedb5b577 | |
parent | 1d125fe45f1bee91a59f9e43a435cabc335cea2f (diff) |
varying-packing: take element size into account for extra varyings
Now that the extra varyings' type matches the array/etc type, we have to
make sure we don't add too many for doubles.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
-rw-r--r-- | tests/spec/glsl-1.10/execution/varying-packing/simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/spec/glsl-1.10/execution/varying-packing/simple.c b/tests/spec/glsl-1.10/execution/varying-packing/simple.c index f555569be..8290735bc 100644 --- a/tests/spec/glsl-1.10/execution/varying-packing/simple.c +++ b/tests/spec/glsl-1.10/execution/varying-packing/simple.c @@ -377,8 +377,8 @@ choose_varyings(struct varying_desc *varyings, = num_test_varyings / outer_dim_size; unsigned num_extra_arrays = 0; unsigned num_extra_varyings - = max_varying_floats - - num_test_varyings * components_in_test_type; + = (max_varying_floats - + num_test_varyings * components_in_test_type) / element_size; unsigned i; if (array_type == ARRAYS_OF_ARRAYS) { varyings[num_varyings].type = test_type; |