Re: [Mesa-dev] [PATCH] r600g: cache shader variants instead of rebuilding v2

2012-06-11 Thread Vadim Girlin
On Sun, 2012-06-10 at 21:45 +0400, Vadim Girlin wrote: > On Sun, 2012-06-10 at 10:27 +0200, Christian König wrote: > > On 10.06.2012 04:07, Vadim Girlin wrote: > > > Shader variants are stored in the list, the key for lookup is based on the > > > states that require different hw shaders - currently

Re: [Mesa-dev] [PATCH] r600g: cache shader variants instead of rebuilding v2

2012-06-10 Thread Vadim Girlin
On Sun, 2012-06-10 at 10:27 +0200, Christian König wrote: > On 10.06.2012 04:07, Vadim Girlin wrote: > > Shader variants are stored in the list, the key for lookup is based on the > > states that require different hw shaders - currently it's rctx->two_side > > (all > > gpus) and rctx->nr_cbufs (ev

Re: [Mesa-dev] [PATCH] r600g: cache shader variants instead of rebuilding v2

2012-06-10 Thread Christian König
On 10.06.2012 04:07, Vadim Girlin wrote: Shader variants are stored in the list, the key for lookup is based on the states that require different hw shaders - currently it's rctx->two_side (all gpus) and rctx->nr_cbufs (evergreen/cayman, when writes_all property is set). v2: - use simple list

[Mesa-dev] [PATCH] r600g: cache shader variants instead of rebuilding v2

2012-06-09 Thread Vadim Girlin
Shader variants are stored in the list, the key for lookup is based on the states that require different hw shaders - currently it's rctx->two_side (all gpus) and rctx->nr_cbufs (evergreen/cayman, when writes_all property is set). v2: - use simple list instead of keymap as suggested by Marek on i