[Glamor] About trapezoid shader performance

Zhigang Gong zhigang.gong at linux.intel.com
Wed Jun 20 03:40:46 PDT 2012


Hi Junyan,

 

The performance of trapezoid shader still has a big room to improve. I have
the following thoughts about

the optimization:

 

1.       Don't get the uniform locations each time, you can do that at the
initial stage.

2.       Don't need to clear the whole area of the temporary picture. Just
clear the uncovered region should be enough.

3.       Split the shader to multiple small shaders and make each shader has
less branches.

4.       Compute complete inside boxes on CPU, only need AA for those
partially inside boxes.

5.       Implement in-place rendering rather than create a temporary mask
picture and then call the generic composite function.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/glamor/attachments/20120620/4fcf0fe0/attachment.html>


More information about the Glamor mailing list