Mesa (master): util: Set flatshade for blitter.

Corbin Simpson csimpson at kemper.freedesktop.org
Mon Jan 11 05:43:45 PST 2010


Module: Mesa
Branch: master
Commit: 1c75edf3e8ccc97f5f91f42f99c1f8db30b25fc4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c75edf3e8ccc97f5f91f42f99c1f8db30b25fc4

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Mon Jan 11 05:39:56 2010 -0800

util: Set flatshade for blitter.

It was bugging me. +1 FPS on softpipe.

---

 src/gallium/auxiliary/util/u_blitter.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index eaa3f53..46b4706 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 */



More information about the mesa-commit mailing list