OSDN Git Service

u_vbuf: fix vb slot assignment for translated buffers
authorNicolai Hähnle <nhaehnle@gmail.com>
Sat, 3 Oct 2015 22:44:00 +0000 (00:44 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 21 Oct 2015 13:23:20 +0000 (14:23 +0100)
commit2ee32ffe7c2f64f40baffc0464d54ea3e974a74a
tree005e0393d7feb0958d8a9b381c5dca11256df17e
parent25e1e909371437bd76ccc07cd3e117b6168501fb
u_vbuf: fix vb slot assignment for translated buffers

Vertex attributes of different categories (constant/per-instance/
per-vertex) go into different buffers for translation, and this is now
properly reflected in the vertex buffers passed to the driver.

Fixes e.g. piglit's point-vertex-id divisor test.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit 45ed627d894aa4d51682e8b07e7234bbc6e7c02d)
src/gallium/auxiliary/util/u_vbuf.c