aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/lower_vector.cpp
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Mark functions staticMatt Turner2017-08-211-1/+1
| | | | | | Cuts 3224 bytes of .text Reviewed-by: Jordan Justen <[email protected]>
* glsl: calculate number of operands in an expression onceTimothy Arceri2017-08-111-1/+1
| | | | | | | | | | | | | | | | | | | Extra validation is added to ir_validate to make sure this is always updated to the correct numer of operands, as passes like lower_instructions modify the instructions directly rather then generating a new one. The reduction in time is so small that it is not really measurable. However callgrind was reporting this function as being called just under 34 million times while compiling the Deus Ex shaders (just pre-linking was profiled) with 0.20% spent in this function. v2: - make num_operands a unit8_t - fix unsigned/signed mismatches Reviewed-by: Thomas Helland <[email protected]>
* glsl: move to compiler/Emil Velikov2016-01-261-0/+228
Signed-off-by: Emil Velikov <[email protected]> Acked-by: Matt Turner <[email protected]> Acked-by: Jose Fonseca <[email protected]>