Re: [Mesa-dev] [PATCH] draw/translate: fix instancing

2013-07-01 Thread Jose Fonseca
- Original Message - > We were incorrectly computing the buffer offset when using the > instances. The buffer offset is always equal to: > start_instance * stride + (instance_num / instance_divisor) * > stride > We were completely ignoring the start instance quite > often producing instan

[Mesa-dev] [PATCH] draw/translate: fix instancing

2013-06-28 Thread Zack Rusin
We were incorrectly computing the buffer offset when using the instances. The buffer offset is always equal to: start_instance * stride + (instance_num / instance_divisor) * stride We were completely ignoring the start instance quite often producing instances that completely wrong, e.g. if start in