diff options
author | Eric Anholt <[email protected]> | 2018-07-06 15:48:46 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-07-09 11:48:32 -0700 |
commit | beeb94402f9d33081147c88de2b9d4c4ea24e842 (patch) | |
tree | 16b9c11668b6a0fe39c667b229aebceb8dfd2a01 /src/broadcom/compiler/vir.c | |
parent | 4b4795be9de7a73ebc89916753d18a2d0f2ef7a3 (diff) |
v3d: Implement noperspective varyings on V3D 4.x.
Fixes a bunch of piglit interpolation tests, and reduces my concern about
some MSAA blit shaders with noperspective varyings.
Diffstat (limited to 'src/broadcom/compiler/vir.c')
-rw-r--r-- | src/broadcom/compiler/vir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c index 2754924e6c1..ee0f329040e 100644 --- a/src/broadcom/compiler/vir.c +++ b/src/broadcom/compiler/vir.c @@ -759,6 +759,9 @@ v3d_set_fs_prog_data_inputs(struct v3d_compile *c, if (BITSET_TEST(c->flat_shade_flags, i)) prog_data->flat_shade_flags[i / 24] |= 1 << (i % 24); + if (BITSET_TEST(c->noperspective_flags, i)) + prog_data->noperspective_flags[i / 24] |= 1 << (i % 24); + if (BITSET_TEST(c->centroid_flags, i)) prog_data->centroid_flags[i / 24] |= 1 << (i % 24); } |