i965/fs: Fix handling of sampler messages with header but zero offset
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 12 Oct 2013 23:20:03 +0000 (12:20 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Tue, 22 Oct 2013 05:56:14 +0000 (18:56 +1300)
commitb38af01ccfb76dc39baf4d65b663300d81f144a2
tree3064d80dc34591fbb08aaf8c6edfb0df76800786
parentf1e605f1ada79bb4d57187274096d44e270615a6
i965/fs: Fix handling of sampler messages with header but zero offset

Gather unconditionally uses a header, but in some cases the
texture_offset value will be zero.

V2: Don't introduce a bogus conversion.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp