<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" style="font: inherit;"><p dir=ltr>I think the bad result of llvm can be explained because of the lack of muladd support currently. Unigine 3.0 has a lot of geometry and i suspect vertex shader being almost twice bigger than they are in tgsi case does not help.</p>
<p dir=ltr>Fwiw with an hd 6950 I have the same performance in unigine 3 high, medium texture, no ssao (it seems to use indirect addressing) with llvm backend as high, high texture, no ssao with fglrx under Windows. Its not a fair comparaison but I think 3.8 kernel may provide the necessary boost to cope up with fglrx. Anyways I have some fps peak at 60fps that does not show up with tgsi backend that I also have with fglrx that makes me think llvm backend generates rather efficient code, but i always cherry pick muladd patches.</p>
</td></tr></table>            <div id="_origMsg_">
                <div style="font-family:arial, helvetica, sans-serif:font-size:10pt">
                    <br />
                    <div style="font-family:times new roman, new york, times, serif;font-size:12pt">
                        <font size="2" face="Tahoma">
                            <hr size="1">
                            <b>
                                <span style="font-weight:bold;">From:</span>
                            </b>
                            Michel Dänzer <michel@daenzer.net>;                            <br>
                            <b>
                                <span style="font-weight:bold:">To:</span>
                            </b>
                            Vadim Girlin <vadimgirlin@gmail.com>;                                                     <br>
                            <b>
                                <span style="font-weight:bold:">Cc:</span>
                            </b>
                             <mesa-dev@lists.freedesktop.org>;                                                                             <br>
                            <b>
                                <span style="font-weight:bold:">Subject:</span>
                            </b>
                            Re: [Mesa-dev] r600g: status of my work on the shader optimization                            <br>
                            <b>
                                <span style="font-weight:bold;">Sent:</span>
                            </b>
                            Fri, Feb 15, 2013 12:06:20 PM                            <br>
                            </font>
                            <br>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="top" style="font:inherit;">On Fre, 2013-02-15 at 15:00 +0400, Vadim Girlin wrote: <BR>> On 02/14/2013 02:42 PM, Christian König wrote:<BR>> ><BR>> > nice work, I think you've made quite a progress here, but on the other<BR>> > hand it should be clear that the LLVM backend is the future and we<BR>> > should concentrate on that.<BR>> <BR>> "LLVM backend is the future" is a pretty abstract argument. I prefer to <BR>> operate with real facts. After a year of LLVM backend development what <BR>> are the real benefits for the users? What are the real use cases where <BR>> the users might prefer LLVM backend? To me this situation looks like the <BR>> use of LLVM requires a lot more time and development efforts than the <BR>> custom solution, despite the initial expectations. Maybe you are right <BR>> and the LLVM backend will become the best alternative for
 users sometime <BR>> in the future, but I only have some today's results:<BR>> <BR>> Heaven 3.0, all settings high/enabled, 1280x720, HD5750:<BR>>    default backend : 20.0 fps<BR>>    llvm backend    : 18.8 fps<BR>>    r600-sb         : 38.0 fps<BR>> <BR>> When I'm looking at these results, the benefits of LLVM-based solution <BR>> are not very clear to me.<BR><BR>Those are really impressive numbers, but to put things into perspective<BR>a little bit:<BR><BR>When comparing two solutions, there will always be cases where one beats<BR>others like this. I think I've also seen reports of cases where the LLVM<BR>backend provides similar speedups over the default one, though of course<BR>your branch might still be even better there.<BR><BR>Also, it's not like the LLVM backend for r600g has been heavily tuned<BR>for performance over the last year. Most of the effort went
 into support<BR>for radeonsi and compute support for r600g. Only recently have people<BR>like Vincent started making serious improvements to the LLVM backend for<BR>r600g graphics support. It might be possible to apply at least some of<BR>the lessons learned from your branch to the LLVM backend as well.<BR><BR><BR>-- <BR>Earthling Michel Dänzer           |                   <a href="http://www.amd.com" target=_blank >http://www.amd.com</a><BR>Libre software enthusiast         |          Debian, X and DRI developer<BR>_______________________________________________<BR>mesa-dev mailing list<BR><a ymailto="mailto:mesa-dev@lists.freedesktop.org" href="javascript:return">mesa-dev@lists.freedesktop.org</a><BR><a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target=_blank
 >http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><BR></td>
                                    </tr>
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>