nir: Add flipping of gl_PointCoord.y in nir_lower_wpos_ytransform.
authorEric Anholt <eric@anholt.net>
Fri, 6 Jul 2018 20:43:06 +0000 (13:43 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 26 Jul 2018 18:00:34 +0000 (11:00 -0700)
commitd934d3206e764bbb15c0cacf357e4ce9279f22b0
tree570917a387f8e0c404fdc96ccacc35d50f16186e
parentb5a56a11daff72d6c566da116a58b1d99087dd88
nir: Add flipping of gl_PointCoord.y in nir_lower_wpos_ytransform.

This is controlled by a new nir_shader_compiler_options flag, and fixes
dEQP-GLES3.functional.shaders.builtin_variable.pointcoord on V3D.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/broadcom/compiler/nir_to_vir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_wpos_ytransform.c