Mesa (master): util: Set flatshade for blitter.
Brian Paul
brianp at vmware.com
Mon Jan 11 18:42:02 UTC 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
much...
-Brian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flat-shade-shaders.patch
Type: text/x-patch
Size: 5570 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-commit/attachments/20100111/fe20671a/attachment.bin>
More information about the mesa-commit
mailing list