nir: Make nir_gather_info collect a uses_fddx_fddy flag.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Oct 2017 22:19:25 +0000 (15:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Oct 2017 03:52:20 +0000 (20:52 -0700)
commit86c68bb88618c5138a22bbbcfe6137d29f9f5f67
treed26686251d0fc3bb27192fa74ec20ad413fb9314
parentf970e4d481bb459822e8f3b6a9599e661c5ceb0d
nir: Make nir_gather_info collect a uses_fddx_fddy flag.

i965 turns fddx/fddy into their coarse/fine variants based on the
ctx->Hint.FragmentShaderDerivative setting.  It needs to know whether
this can impact a shader in order to better guess NOS settings.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_gather_info.c
src/compiler/shader_info.h