i965/fs: Add a an optional source to the FS_OPCODE_FB_WRITE instruction
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 16 Sep 2014 22:16:20 +0000 (15:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:15 +0000 (10:29 -0700)
commit8b0e4b387a2aeb28e32df5b680013338a841859b
tree924aefd9f335f28c22736fae1735e7a554f7032c
parent9e1f52a6e2b0277de063a8d8b07c5e520795a23b
i965/fs: Add a an optional source to the FS_OPCODE_FB_WRITE instruction

Previously, we were use the base_mrf parameter of fs_inst to store the MRF
location.  In preparation for doing FB writes from the GRF, we now also
allow you to set inst->base_mrf to -1 and provide a source register.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_generator.cpp