OSDN Git Service

st/mesa: small optimization in swizzle_swizzle()
authorBrian Paul <brianp@vmware.com>
Thu, 22 Sep 2016 22:10:02 +0000 (16:10 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 24 Sep 2016 01:54:42 +0000 (19:54 -0600)
commit07d1f8faf9a7b4bdf6989de7df928105cd248251
tree2a1f4c09f668cb9c0be46a3e91c00b51e0aee357
parent1cdc232e1ae683a7c45f81b44818cf8656480df8
st/mesa: small optimization in swizzle_swizzle()

Usually, there's no user-specified texture swizzle so we can optimize
the swizzle_swizzle() function and skip the loop/switch.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/state_tracker/st_atom_texture.c