i965: Override swizzles for integer luminance formats.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 6 Feb 2015 10:06:27 +0000 (02:06 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Feb 2015 21:18:54 +0000 (13:18 -0800)
commit8cb18760cccf2c89d94c50ff14b330ec2d5c4a3c
tree2552112a1ed5cdefb1700a9ca706a1be33c0eb5d
parentb16de0b713fb4d5d1c5600d126e4ce945fc27303
i965: Override swizzles for integer luminance formats.

The hardware's integer luminance formats are completely unusable;
currently we fall back to RGBA.  This means we need to override
the texture swizzle to obtain the XXX1 values expected for luminance
formats.

Fixes spec/EXT_texture_integer/texwrap formats bordercolor [swizzled]
on Broadwell - 100% of border color tests now pass on Broadwell.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/brw_wm_surface_state.c