llvmpipe: Tighten check for alpha-only formats
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Wed, 19 Mar 2014 17:12:38 +0000 (17:12 +0000)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 20 Mar 2014 15:50:40 +0000 (16:50 +0100)
commitf4b3430a36ea88707f59ce147a140a1a559378c5
tree69252ed1166046c8c36da8b0fc3aa810ab4e7870
parent8044fd6769d51ae35402cd62272ea8582b625445
llvmpipe: Tighten check for alpha-only formats

The AoS version of ld_build_blend_factor was assuming that if the first
channel was alpha, there were no rgb components.

Fixes glean/blendFunc on System z.  No piglit regressions on x86_64.
The shortcut is still used in tests like spec/ARB_framebuffer_object/
fbo-alpha.

Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
src/gallium/drivers/llvmpipe/lp_bld_blend_aos.c