i965/fs: Add support for user-defined out variables.
authorEric Anholt <eric@anholt.net>
Wed, 9 Nov 2011 03:27:46 +0000 (19:27 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 9 Nov 2011 20:59:20 +0000 (12:59 -0800)
commit6d874d0ee18b3694c49e0206fa519bd8b746ec24
treef9767c8976964b76fadde9f5a500087ac65ca427
parente988d816e16f9c0844424472d689486a833931c3
i965/fs: Add support for user-defined out variables.

Before, I was tracking the ir_variable * found for gl_FragColor or
gl_FragData[].  Instead, when visiting those variables, set up an
array of per-render-target fs_regs to copy the output data from.  This
cleans up the color emit path, while making handling of multiple
user-defined out variables easier.

v2: incorporate idr's feedback about ir->location (changes by Kenneth Graunke)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp