nir: add load_frag_coord system value intrinsic
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 4 Jul 2017 08:34:02 +0000 (10:34 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 12:55:28 +0000 (14:55 +0200)
commitf1da97ef7a8408155d2627ef55092c2aa78c81ac
treeceeadbdee17975eac7c6f5317f06bcf15a9bd81e
parent5011923e09ec835dbd275a5137fde532ec600368
nir: add load_frag_coord system value intrinsic

Some drivers prefer to treat gl_FragCoord as a system value rather than
a fragment shader input, see Const.GLSLFragCoordIsSysVal.

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