Mesa (master): util: Set flatshade for blitter.
brianp at vmware.com
Mon Jan 11 10:42:02 PST 2010
Corbin Simpson wrote:
> 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.
I believe that the fragment shader's input color attribute is
presently flagged as TGSI_INTERPOLATE_PERSPECTIVE. It should be
TGSI_INTERPOLATE_CONSTANT when the shader is used for solid fills.
That should definitely speed things up a bit for softpipe/llvmpipe.
I'm attaching a patch that I was working on last week but didn't test
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5570 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/mesa-commit/attachments/20100111/fe20671a/attachment.bin
More information about the mesa-commit