i965/fs: Allocate fragment output temporaries on demand.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 22 Jul 2016 04:47:45 +0000 (21:47 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 26 Aug 2016 01:36:06 +0000 (18:36 -0700)
commitb00a236d6a6212323f77248ba923c65eeb02592b
tree9cb1f6d396ef5c78d8c613d0f72f20cffaade4a0
parent7dac8820730777756c00d7024330517848dc3b9f
i965/fs: Allocate fragment output temporaries on demand.

This gets rid of the duplication of logic between nir_setup_outputs()
and get_frag_output() by allocating fragment output temporaries lazily
whenever get_frag_output() is called.  This makes nir_setup_outputs()
a no-op for the fragment shader stage.

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