mesa/src
Zack Rusin 1c2e5c223d draw/translate: fix instancing
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 instance = 5, instance divisor = 2, then on the first
iteration it should be:
5 * stride, not (5/2) * stride as we'd have currently, and if
start instance = 1, instance divisor = 3, then on the first
iteration it should be:
1 * stride, not 0 as we'd have.
This fixes it and adjusts all the code to the changes.

Signed-off-by: Zack Rusin <zackr@vmware.com>
2013-06-28 05:21:20 -04:00
..
egl wayland: Handle global_remove event as well 2013-06-18 17:45:19 -04:00
gallium draw/translate: fix instancing 2013-06-28 05:21:20 -04:00
gbm gbm: Remember to init format on gbm_dri_bo_create. 2013-02-07 20:00:52 -05:00
getopt
glsl glsl: Initialize member variable is_ubo_var in constructor. 2013-06-27 21:51:32 -07:00
glx glx: return True/False instead of GL_TRUE/GL_FALSE 2013-06-27 07:48:19 -06:00
gtest gtest: Build it only for 'make check'. 2013-01-13 12:38:44 +01:00
mapi scons: Fix dependencies of enums.c and api_exec.c. 2013-07-01 12:04:59 +01:00
mesa i965: Initialize brw_blorp_const_color_program member variables. 2013-07-01 10:16:16 -07:00
Makefile.am build: Remove GALLIUM_DIRS 2013-04-15 12:04:26 -07:00
SConscript