radeonsi: Fix calculation of number of records in buffer resource.
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 12 Sep 2012 10:59:49 +0000 (12:59 +0200)
committerMichel Dänzer <michel@daenzer.net>
Wed, 12 Sep 2012 11:23:09 +0000 (13:23 +0200)
commitd67d8e24718a7ab991caa6798563e53ae343cede
tree84dee0fa72eb3430a9b0e1ee3f3b5cec395e9229
parent9f30cbe9ee27a588cb2535cb8df7a597347c06e1
radeonsi: Fix calculation of number of records in buffer resource.

The value was too small by 1 in some cases (non-first of several vertex
elements interleaved in a single buffer).

Fixes intermittent incorrect geometry in many apps, e.g. piglit
spec/EXT_texture_snorm/fbo-generatemipmap-formats.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeonsi/si_state_draw.c