[Mesa-dev] [PATCH] glsl_to_tgsi: Loop- and conditional-safe TGSI register merging

2014-06-29 Thread Tomáš Trnka
unsigned long is used as a bit mask for recording register usage in nested loops. This means that after 32 levels of nested loops (or more if unsigned long is wider) the code reverts to treating deeper levels as black boxes. Signed-off-by: Tomáš Trnka --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp

[Mesa-dev] Loop- and conditional-safe TGSI register merging

2014-06-29 Thread Tomáš Trnka
I'm unfortunately unable to run piglit at all as it fails the sanity check due to some mysterious z-buffer readback inaccuracy. I welcome any comments and suggestions (as this is my first Mesa contribution), but please CC me as I'm not subscribed to the list. Best regards, Tomáš Trnka