From 93581c2ca0776b290f9817f46eaca5edfaa32528 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 6 Mar 2018 09:29:21 -0700 Subject: [PATCH] svga: simplify uses_flat_interp expression in emit_input_declarations() Reviewed-by: Neha Bhende --- src/gallium/drivers/svga/svga_tgsi_vgpu10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c index 04d83038b00..4292894056e 100644 --- a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c +++ b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c @@ -2396,7 +2396,7 @@ emit_input_declarations(struct svga_shader_emitter_v10 *emit) emit->info.input_interpolate_loc[i]); /* keeps track if flat interpolation mode is being used */ - emit->uses_flat_interp = emit->uses_flat_interp || + emit->uses_flat_interp |= (interpolationMode == VGPU10_INTERPOLATION_CONSTANT); name = VGPU10_NAME_UNDEFINED; -- 2.30.2