i965/fs: initialize src as reg_undef for texture opcodes on Gen5/6.
authorTapani Pälli <tapani.palli@intel.com>
Mon, 9 Jun 2014 09:30:55 +0000 (12:30 +0300)
committerMatt Turner <mattst88@gmail.com>
Tue, 10 Jun 2014 04:08:05 +0000 (21:08 -0700)
commit198204c9c5721b1b8d3e0350831ed80b4f19b56d
tree068d6979518c05cbfe6ee69efec5cef9ee575f4d
parent5cb1cad0aef8d1c426207c955996278290e19e60
i965/fs: initialize src as reg_undef for texture opcodes on Gen5/6.

Commit 07af0ab changed fs_inst to have 0 sources for texture opcodes
in emit_texture_gen5 (Ironlake, Sandybrige) while fs_generator still
uses a single source from brw_reg struct. Patch sets src as reg_undef
which matches the behavior before the constructor got changed.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79534
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp