Re: [Mesa-dev] [PATCH 3/4] gallivm: fix loops and conditionals within GS

2013-04-09 Thread Roland Scheidegger
Am 10.04.2013 02:22, schrieb Zack Rusin: > We were using simple temporaries, without using alloca or phi > nodes which meant that on every iteration of the loop our > temporaries holding the numbers of vertices and primitives > which were emitted were being reset to zero. Now we're using > alloca t

[Mesa-dev] [PATCH 3/4] gallivm: fix loops and conditionals within GS

2013-04-09 Thread Zack Rusin
We were using simple temporaries, without using alloca or phi nodes which meant that on every iteration of the loop our temporaries holding the numbers of vertices and primitives which were emitted were being reset to zero. Now we're using alloca to allocate of those variables to preserve them acro