[Mesa-dev] [PATCH v2 2/3] mesa/st: glsl_to_tgsi Implement a new lifetime tracker for temporaries

Gert Wollny gw.fossdev at gmail.com
Sun Jun 18 17:15:15 UTC 2017


Hello Dieter, 


> W'll start with your attachment
> https://bugs.freedesktop.org/attachment.cgi?id=131683

This one is a dirty hack that works around the use of too many
registers mostly by allowing to allocate more than the allowed limit 
and let the bytecode optimizer sort it out (there is also a bit
trickery to let the byte code generator combine constants that are
otherwise allocated in the wrong register space). 

It works only when the number of excess register is very small, and it
will not work if mesa is compiled with --enable-debug, because there
are some assertions in the sb code that will be enabled and fire. 

I'm about to send an updated set of patches that focus on the real
solution, i.e. reducing the number of temporary registers before they
are translated to R600 byte code.

You might be better off trying these.

Best, 
Gert



More information about the mesa-dev mailing list