[Mesa-dev] [PATCH 1/3] glsl: add ir_partial_visitor

Luca Barbieri luca at luca-barbieri.com
Tue Sep 7 15:00:07 PDT 2010


Yes, I think what is really needed here is a class that only ignores
IR related to declaration and expression statements.

This would allow lower_jumps to avoid caring about stuff like
ir_texture that it doesn't care about at all.

Would this be acceptable?

BTW, using hierarchical_visitor is less natural, because we need to
get a result block_record from each branch of ifs, and we want to
truncate immediately after terminators (hierarchical_visitor isn't
safe for that because it keeps the next pointer).


More information about the mesa-dev mailing list