util: Set flatshade for blitter.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 11 Jan 2010 13:39:56 +0000 (05:39 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 11 Jan 2010 13:43:29 +0000 (05:43 -0800)
It was bugging me. +1 FPS on softpipe.

src/gallium/auxiliary/util/u_blitter.c

index eaa3f535a07b0412d89a60ac0e32d96b3766a0cb..46b4706b7680c95c5ad8488869902ef35926d890 100644 (file)
@@ -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 */