i965/fs: introduce blorp specific rt-write for fs_generator
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 17 Dec 2013 12:00:50 +0000 (14:00 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 23 Jan 2014 06:46:57 +0000 (08:46 +0200)
commit9927d7ae6883e2a5569130ed48ca0537ca3e07c3
tree6a45210799c08d0bccb0b9a57ed5ba02bc1509e6
parent85fc724df5403ffb7d8eac071962824d9303d24f
i965/fs: introduce blorp specific rt-write for fs_generator

The compiler for blorp programs likes to emit instructions for
the message construction itself meaning that the generator needs
to skip any such when blorp programs are translated for the hw.
In addition, the binding table control is special for blorp
programs and the generator does not need to update the binding
tables associated with the compiler bookkeeping (this in fact
gets thrown away as the blorp compiler sets the program data
in its own way).

v2 (Paul): do not hardcode the binding table index but use
           fs_inst::target instead.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp