svga: simplify uses_flat_interp expression in emit_input_declarations()
authorBrian Paul <brianp@vmware.com>
Tue, 6 Mar 2018 16:29:21 +0000 (09:29 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 23 Mar 2018 15:03:26 +0000 (09:03 -0600)
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/gallium/drivers/svga/svga_tgsi_vgpu10.c

index 04d83038b005e220f26e686fb3c484243ce718f7..4292894056e139e7ef0b6f6bf8a0f0e894d9accf 100644 (file)
@@ -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;