i965: Fix border color handling for deprecated SNORM formats.
authorEric Anholt <eric@anholt.net>
Thu, 20 Dec 2012 23:45:11 +0000 (15:45 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 26 Dec 2012 20:08:33 +0000 (12:08 -0800)
commit5791c56811ae261b0596d088e99933eb5e24206d
treec46c26397685da40d3442dbe72484f683f46282d
parent5628501e7b4289f5a04a2ca26d1ed4b3dec1a442
i965: Fix border color handling for deprecated SNORM formats.

We don't have native hardware support for these, so they get promoted to
RGBA, in which case we don't have hardware dealing with the channel
swizzling for us.

Fixes piglit EXT_texture_snorm/texwrap formats bordercolor (-swizzled).

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