i965/fs: Special-case nir_intrinsic_store_output for the fragment shader.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 22 Jul 2016 04:25:46 +0000 (21:25 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 26 Aug 2016 01:36:06 +0000 (18:36 -0700)
commitf3cb2c34f29d35088879a6b8101c3ac648e0febf
tree1fae3bffbfa24d42d672f2b3f4f9f5110c64fa47
parentaf0cc743e607293146861518bb6ef96f411aeca9
i965/fs: Special-case nir_intrinsic_store_output for the fragment shader.

I'm about to change how fragment shader output locations are
represented, so the generic nir_intrinsic_store_output implementation
that assumes that outputs are just contiguous elements in the big
nir_outputs array won't work anymore.  This somewhat simplified
implementation of nir_intrinsic_store_output for fragment shaders
should be functionally equivalent to the current fall-back one.

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