[Mesa-dev] [PATCH] linker: Reject shaders that use too many varyings
Tilman Sauerbeck
tilman at code-monkey.de
Mon Jun 13 12:39:16 PDT 2011
Ian Romanick [2011-06-13 12:09]:
> [...]
> + } else if (var->type->is_matrix()) {
> + varying_vectors += var->type->matrix_columns;
> + float_components += var->type->matrix_columns * 4;
> + } else {
> + varying_vectors++;
> + float_components += var->type->vector_elements;
> + }
> + }
> + }
> +
> + printf("varyings = %u, %u\n", varying_vectors, float_components);
Did you intend to leave this printf there?
Regards,
Tilman
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
More information about the mesa-dev
mailing list