From: Brian Paul Date: Tue, 6 Mar 2018 16:29:21 +0000 (-0700) Subject: svga: simplify uses_flat_interp expression in emit_input_declarations() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93581c2ca0776b290f9817f46eaca5edfaa32528;p=mesa.git svga: simplify uses_flat_interp expression in emit_input_declarations() Reviewed-by: Neha Bhende --- 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;