aboutsummaryrefslogtreecommitdiffstats
path: root/src/broadcom/compiler
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-07-06 13:43:06 -0700
committerEric Anholt <[email protected]>2018-07-26 11:00:34 -0700
commitd934d3206e764bbb15c0cacf357e4ce9279f22b0 (patch)
tree570917a387f8e0c404fdc96ccacc35d50f16186e /src/broadcom/compiler
parentb5a56a11daff72d6c566da116a58b1d99087dd88 (diff)
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 <[email protected]>
Diffstat (limited to 'src/broadcom/compiler')
-rw-r--r--src/broadcom/compiler/nir_to_vir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c
index 51cb8845cdb..158c1c3e9f3 100644
--- a/src/broadcom/compiler/nir_to_vir.c
+++ b/src/broadcom/compiler/nir_to_vir.c
@@ -1927,6 +1927,7 @@ const nir_shader_compiler_options v3d_nir_options = {
.lower_ifind_msb = true,
.lower_ldexp = true,
.lower_mul_high = true,
+ .lower_wpos_pntc = true,
.native_integers = true,
};