i965: Add BRW_SURFACEFORMAT_R32G32_FLOAT_LD, required for IVB gather4 w/a
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 10 Aug 2013 23:46:18 +0000 (11:46 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Wed, 2 Oct 2013 18:56:23 +0000 (07:56 +1300)
commit855b2a8f4a2ef9151f7710e651bbcdadb4c6ea99
tree0259b5aae8cc1cf7bc78207f615f579d3b2d6313
parentcfa3c8a0d326e031c349039b95fc1232d9d623eb
i965: Add BRW_SURFACEFORMAT_R32G32_FLOAT_LD, required for IVB gather4 w/a

gather4 GREEN channel against a surface with format R32G32_FLOAT doesn't work
correctly on IVB. w/a from bspec:

   - use R32G32_FLOAT_LD = 0x97 instead, for gather4 only.
   - select BLUE channel to read GREEN

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_surface_formats.c