i965/Gen4: Zero extra coordinates for ir_tex
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 14 Jul 2013 06:30:52 +0000 (18:30 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Tue, 16 Jul 2013 07:08:41 +0000 (19:08 +1200)
commit121ea0b38bfee093e0bde0ff1443fc2efec688b0
treefbc1738c9b93fe9d5dd310699c02615db2ee77cc
parente4fdf1b008ce29c5b5a52985c586b61f35d31e4c
i965/Gen4: Zero extra coordinates for ir_tex

We always emit U,V,R coordinates for this message, but the sampler gets
very angry if we pass garbage in the R coordinate for at least some
texture formats.

Fill the remaining coordinates with zero instead.

Fixes broken rendering on GM45 in Source games, and in VDrift.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65236

NOTE: This is a candidate for stable branches.

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