2017-03-27 21:10 GMT+02:00 Jason Ekstrand <ja...@jlekstrand.net>: > On March 27, 2017 10:24:47 AM Gustaw Smolarczyk <wielkie...@gmail.com> > wrote: > >> Hello, >> >> I was playing with profiling Minecraft on radeonsi in perf and found that >> _mesa_get_fixed_func_fragment_program was a little bit too high in the >> profile >> log than it should. I assumed that most of it comes from make_state_key >> static >> function which I am trying to optimize now in the spare time. >> >> I started with a few pretty simple things. I don't think they will help >> much, >> but should be a good start. > > > Do you have any performance data for any of this? It looks reasonable to me > but I'm not very familiar with this code. I just know that others will ask. > :-)
Unfortunately not. Testing minecraft is not an easy task since it's not simple to reproduce the same testing circumstances. Maybe I should record an apitrace trace and try to profile that? I will try that later, though I don't expect much of a difference with these patches - there are probably other things that could be done to make_state_key that would have more of a performance impact. Gustaw _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev