From: Corbin Simpson Date: Mon, 11 Jan 2010 13:39:56 +0000 (-0800) Subject: util: Set flatshade for blitter. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c75edf3e8ccc97f5f91f42f99c1f8db30b25fc4;p=mesa.git util: Set flatshade for blitter. It was bugging me. +1 FPS on softpipe. --- diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index eaa3f535a07..46b4706b768 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -163,6 +163,7 @@ struct blitter_context *util_blitter_create(struct pipe_context *pipe) rs_state.cull_mode = PIPE_WINDING_NONE; rs_state.bypass_vs_clip_and_viewport = 1; rs_state.gl_rasterization_rules = 1; + rs_state.flatshade = 1; ctx->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); /* fragment shaders are created on-demand */