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.
This commit is contained in:
Eric Anholt
2018-07-06 15:48:46 -07:00
parent 4b4795be9d
commit beeb94402f
7 changed files with 40 additions and 4 deletions

View File

@@ -476,6 +476,8 @@ struct v3d_compile {
*/
uint32_t flat_shade_flags[BITSET_WORDS(V3D_MAX_FS_INPUTS)];
uint32_t noperspective_flags[BITSET_WORDS(V3D_MAX_FS_INPUTS)];
uint32_t centroid_flags[BITSET_WORDS(V3D_MAX_FS_INPUTS)];
bool uses_center_w;
@@ -659,6 +661,8 @@ struct v3d_fs_prog_data {
*/
uint32_t flat_shade_flags[((V3D_MAX_FS_INPUTS - 1) / 24) + 1];
uint32_t noperspective_flags[((V3D_MAX_FS_INPUTS - 1) / 24) + 1];
uint32_t centroid_flags[((V3D_MAX_FS_INPUTS - 1) / 24) + 1];
bool writes_z;