i965: Force border color A to 1 when it's not present in the GL format.
authorEric Anholt <eric@anholt.net>
Thu, 1 Nov 2012 17:37:56 +0000 (10:37 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 4 Nov 2012 20:23:59 +0000 (12:23 -0800)
commit3a937daf3f0e8e497431d371d4f1ea6a0ffc29ff
tree6e94af10ba28357a2bad24bb9658348d0fd5cb8b
parent1e08d5452eaf80d63e626119142facc6c549a58e
i965: Force border color A to 1 when it's not present in the GL format.

It's usually forced to 1 by the surface format, but sometimes we actually have
alpha present because it's the only format available.

Fixes piglit texwrap bordercolor tests for OpenGL 1.1, GL_EXT_texture_sRGB and
GL_ARB_texture_float.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c