summaryrefslogtreecommitdiffstats
path: root/include/GLES2
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-03-15 18:05:55 -0700
committerIan Romanick <[email protected]>2013-03-29 12:01:07 -0700
commitdbf94d105a48b7aafb2c8cf64d8b4392d87efea1 (patch)
tree520dd307dce18c892fde014b550d1f3a83d7156d /include/GLES2
parentc770faea0a308ffb858c0125c9e680c6e477efee (diff)
glsl: Replace constant-index vector array accesses with swizzles
Search and replace: ][0] -> ].x ][1] -> ].y ][2] -> ].z ][3] -> ].w Fixes piglit tests inverse-mat[234].{vert,frag}. These tests call the inverse function with constant parameters and expect proper constant folding to happen. My suspicion is that this patch papers over some bug in constant propagation involving array accesses. Either way, all of these accesses eventually get lowered to swizzles. This cuts out the middle man (saving a trivial amount of CPU). NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jordan Justen <[email protected]> Cc: Eric Anholt <[email protected]> Cc: Paul Berry <[email protected]>
Diffstat (limited to 'include/GLES2')
0 files changed, 0 insertions, 0 deletions