summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/lower_subroutine.cpp
diff options
context:
space:
mode:
authorVladislav Egorov <[email protected]>2017-05-21 22:49:15 +0200
committerTimothy Arceri <[email protected]>2017-05-22 12:34:28 +1000
commitb8e792ee25e01ce1e9e4f3ed444f8e1ade8c992e (patch)
tree1d11443708054eee9b0793a668055ea435aef25a /src/compiler/glsl/lower_subroutine.cpp
parent1575a8146a33bfddb2e498ce77fa0ca8f0f0c85e (diff)
glcpp: Avoid unnecessary strcmp()
strcmp() is slow. Initiate comparison with "__LINE__" or "__FILE__" only if the identifier starts with '_', which is rare. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/lower_subroutine.cpp')
0 files changed, 0 insertions, 0 deletions