Hi, The first 2 patches make the GLSL preprocessor a little faster.
The others add an optional CAP/Const flag to Mesa and Gallium that decreases the amount of GLSL optimizations that are executed by tweaking the do_common_optimizations call sites. I've not seen a drop in the quality of the produced TGSI (thanks to TGSI passes in glsl_to_tgsi?), but there is a CAP just in case some other drivers don't want this. It reduces GLSL compile times by 24% with the Gallium noop driver. (or 10% with full radeonsi?) Please review. BTW, after this series, it became more obvious that debug builds have much slower compilation because of these two: - validate_ir_tree - tgsi_sanity_check If you wanna profile the compiler, disable those two or don't use a debug build. Marek _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev