i965/fs: Make emit_spill/unspill static functions taking builder as argument.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 16 May 2016 03:30:06 +0000 (20:30 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 23 May 2016 21:05:20 +0000 (14:05 -0700)
commit284c8fbcef8d631a0a727f0b7a8b34f9e4ad215d
treee05d746a8e0ec29a48bffe4f96d1911f92cd9c70
parent70023c40c6094208cc869ef4a8eb8d9ccebc8395
i965/fs: Make emit_spill/unspill static functions taking builder as argument.

This seems cleaner than exposing an implementation detail of
brw_fs_reg_allocate.cpp to the world, and will give the caller control
over the instruction execution flags (e.g. force_writemask_all) that
are applied to the scratch read and write instructions.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp