nir: Pass through fb_fetch_output and OutputsRead from GLSL IR.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 20 Jul 2016 03:33:46 +0000 (20:33 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 26 Aug 2016 01:33:29 +0000 (18:33 -0700)
commit97ac3eba58a7d11e171475f4a209cfdb3578b21d
treed6edf8186e184a6cb04abd2cb63825c863e56c71
parent00c72acba5a98965622000d949b6835f28a9d71a
nir: Pass through fb_fetch_output and OutputsRead from GLSL IR.

The NIR representation of framebuffer fetch is the same as the GLSL
IR's until interface variables are lowered away, at which point it
will be translated to load output intrinsics.  The GLSL-to-NIR pass
just needs to copy the bits over to the NIR program.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.h