i965: Write gl_FragCoord directly to the destination.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Jul 2016 23:52:10 +0000 (16:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 18 Jul 2016 02:26:53 +0000 (19:26 -0700)
commit7ef7738a61ded5632105b8de6f8141307592e20a
tree0e8aa05531fc5b7bc2e432d110596dfa0af64b6f
parenta03812c32188f6d29d386165ca02771fe0865352
i965: Write gl_FragCoord directly to the destination.

This patch makes emit_general_interpolation take a destination register
as an argument, and write directly to that.  This is simpler than the
old approach of ralloc'ing a register, writing to that temporary, and
then making the caller emit per-component MOVs to copy it to the actual
destination.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp