Re: [Mesa-dev] [PATCH] draw/llvm: reduce memory usage

2014-04-24 Thread Jose Fonseca
Looks great to me. Thanks Zack. Jose - Original Message - > Lets make draw_get_option_use_llvm function available unconditionally > and use it to avoid useless allocations when LLVM paths are active. > TGSI machine is never used when we're using LLVM. > > Signed-off-by: Zack Rusin > ---

Re: [Mesa-dev] [PATCH] draw/llvm: reduce memory usage

2014-04-23 Thread Roland Scheidegger
Am 23.04.2014 23:10, schrieb Zack Rusin: > Lets make draw_get_option_use_llvm function available unconditionally > and use it to avoid useless allocations when LLVM paths are active. > TGSI machine is never used when we're using LLVM. > > Signed-off-by: Zack Rusin > --- > src/gallium/auxiliary/d

Re: [Mesa-dev] [PATCH] draw/llvm: reduce memory usage

2014-04-23 Thread Zack Rusin
>   > -   tgsi_exec_machine_destroy(draw->vs.tgsi.machine); > +   if (draw_get_option_use_llvm()) > +      tgsi_exec_machine_destroy(draw->vs.tgsi.machine); That part should have used !draw_get_option_use_llvm() ___ mesa-dev mailing list mesa-dev@lists.

[Mesa-dev] [PATCH] draw/llvm: reduce memory usage

2014-04-23 Thread Zack Rusin
Lets make draw_get_option_use_llvm function available unconditionally and use it to avoid useless allocations when LLVM paths are active. TGSI machine is never used when we're using LLVM. Signed-off-by: Zack Rusin --- src/gallium/auxiliary/draw/draw_context.c | 6 ++ src/gallium/auxiliary/d