summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/extensions.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2014-08-21 21:49:07 -0700
committerKenneth Graunke <kenneth@whitecape.org>2015-02-02 17:14:55 -0800
commit0f06f12c119ab9518f513f0a9bfdd06e3f5ce0c4 (patch)
tree4aad398bce5c776d74f20e8254332e14242ae2de /src/mesa/main/extensions.c
parent534f07ee85a3a4981171e3e908578e38b2a9770d (diff)
glsl: Pick ast_conditional branch regardless of op1/2 being constant.
If the ?: operator's condition is a constant value, and both branches were pure expressions, we can just make the resulting value one or the other. Previously, we only did this if op[1] and op[2] were also constant values - but there's no actual reason for that restriction. No changes in shader-db, probably because we usually optimize this later anyway. But it does make us generate less stupid code up front. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/main/extensions.c')
0 files changed, 0 insertions, 0 deletions