nouveau: always align buffers to 0x100
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 20 Jul 2015 16:47:17 +0000 (18:47 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 20 Jul 2015 16:48:27 +0000 (18:48 +0200)
commitc2cb771354d2d738e0ab3ca7c8008748c5f57953
treec62f683ce0b1f9dba80833d4f0005383fb09fa1d
parent19a6214b0ff707ae52e9624c263b7d6c1c20e6d3
nouveau: always align buffers to 0x100

Only constbufs must be aligned to 0x100, but since all buffers can be
rebinded as constant buffers they must be also aligned.

This patch prevents this behaviour by aligning everything to 256-byte
increments at buffer creation.

This fixes dmesg fails for the following piglit test:
  ext_transform_feedback-immediate-reuse-uniform-buffer -auto -fbo

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nouveau_buffer.c