From 9b96ae69bc7f07d267e880fe77a389c2b944f019 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Thu, 6 Jun 2019 10:04:27 +0200 Subject: 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 --- src/gallium/drivers/v3d/v3dx_draw.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/drivers/v3d') 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; -- cgit v1.2.3