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 <[email protected]> --- tests/spec/glsl-1.10/execution/varying-packing/simple.c | 4 ++-- 1 file 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 f555569..8290735 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; -- 2.4.10 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
