diff options
author | Iago Toral Quiroga <[email protected]> | 2019-06-06 10:04:27 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2019-06-07 08:29:42 +0200 |
commit | 9b96ae69bc7f07d267e880fe77a389c2b944f019 (patch) | |
tree | 3ad3f68e6ece6bae88525ec71cebb4d5fad9bbf2 /src/gallium/drivers/v3d | |
parent | 5e26e55e724f4eff28840cfb6922963069231902 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/v3d')
-rw-r--r-- | src/gallium/drivers/v3d/v3dx_draw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3dx_draw.c b/src/gallium/drivers/v3d/v3dx_draw.c index 7ddd1f92a2f..629f35a8d7f 100644 --- a/src/gallium/drivers/v3d/v3dx_draw.c +++ b/src/gallium/drivers/v3d/v3dx_draw.c @@ -236,6 +236,11 @@ v3d_emit_gl_shader_state(struct v3d_context *v3d, shader.fragment_shader_uses_real_pixel_centre_w_in_addition_to_centroid_w2 = v3d->prog.fs->prog_data.fs->uses_center_w; +#if V3D_VERSION >= 40 + shader.disable_implicit_point_line_varyings = + !v3d->prog.fs->prog_data.fs->uses_implicit_point_line_varyings; +#endif + shader.number_of_varyings_in_fragment_shader = v3d->prog.fs->prog_data.fs->num_inputs; |