i965/fs: Clean up emit_fb_writes
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 13 Sep 2014 00:49:49 +0000 (17:49 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:14 +0000 (10:29 -0700)
commit54688cd03b087740173b0e11638df1cf0f3a19e1
tree9fa5989ff9dad1df0b799a66e5dbc5cdb112a108
parent72a3780f26951c405c35a1ae51598f7b0a65b92f
i965/fs: Clean up emit_fb_writes

This splits emit_fb_writes into two functions: emit_fb_writes and
emit_single_fb_write.  This reduces the amount of duplicated code in
emit_fb_writes and makes the register number fiddling less arcane.

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