v3d: don't emit point coordinates varyings if the FS doesn't read them

We still need to emit them in V3D 3.x since there there is no mechanism to
disable them.

Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Iago Toral Quiroga
2019-06-06 10:04:27 +02:00
parent 5e26e55e72
commit 9b96ae69bc
4 changed files with 27 additions and 5 deletions

View File

@@ -513,6 +513,7 @@ struct v3d_compile {
bool uses_center_w;
bool writes_z;
bool uses_implicit_point_line_varyings;
/* State for whether we're executing on each channel currently. 0 if
* yes, otherwise a block number + 1 that the channel jumped to.
@@ -689,6 +690,7 @@ struct v3d_fs_prog_data {
bool writes_z;
bool disable_ez;
bool uses_center_w;
bool uses_implicit_point_line_varyings;
};
struct v3d_compute_prog_data {