[Mesa-dev] [PATCH 6/6] glsl: Allow instructions to be generated for array size declarations.

Chad Versace chad at chad-versace.us
Mon Apr 11 15:20:44 PDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/09/2011 10:17 PM, Eric Anholt wrote:
> The specs only say that they have to be a constant expression, which
> would allow things like builtin function calls that generate
> instructions as a side effect of their parsing.
> 
> Fixes the fixed array-size-constant-relational.vert.
> ---
>  src/glsl/ast.h            |    2 +-
>  src/glsl/ast_function.cpp |    3 ++-
>  src/glsl/ast_to_hir.cpp   |   34 ++++++++++++++++++----------------
>  3 files changed, 21 insertions(+), 18 deletions(-)

I don't fully understand the implications of this one, so withholding
the reviewed-by.

- -- 
Chad Versace
chad at chad-versace.us
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJNo368AAoJEAIvNt057x8ij60P/1TfqQ6/Rt7Y5RWFiJmZ0siu
CiJgGhZIFzbLoLiULYurZ2TfvItO+0hkpo7Qsl9dMZ2K2DDRAoMbQom8Qd/NYiS7
AN2GWjjpMzAlbOpP6kQEmjDeCOqTo1YEjBllp5XzIyiTd4B7dbVhcU3CZKIUTqGm
JuCkyH4UwiD50E0r2Y/13YvL/whZLDFJOwEKcujwssDObaT0dQKgJ+t7YfUvlYnj
BxVE9370MQi0yv4Xh8WMnav/6fCUpfkGCkMEE8ZgpzyI60zbF+s+C8aQ5EBZWHPc
oSBYFn9ICDjcMUIoNComscDntc1nAoqVb+ocmZ+Rec4piv4deqmkp1VJgUPsNKrB
aoibNNHjLN/IPb3oAs0MnhfFabBlhOk6MhzMQchxdsNKASueuwr5orUwiYKyro7g
M/G77FqwTMaPo2RESF8bm9Iq0DKEd65nt2tf4cLk9UBRDEU2990Og2OvwKSRYNjo
XJY5gf3EScuMD8Bu6p5Fkx4OeIVjxJVWthAJ/zNPxXZdQYwNP4UJwYA0+9VXCSi3
OCUALsJz3aWXhhSLkd+8sZy353nCDZv1PrjzM7MEgPDd05/y/DqRw7MXpMN8o3oe
ZiVkWf309O6fTgSPnnYmVBj2D57GsTNOHVfh47a0b2kFAWMPI07IJKez7WM3nOYc
xENAJPYdIWxC9Q3fL7hF
=DeV4
-----END PGP SIGNATURE-----


More information about the mesa-dev mailing list