r600: fix constant buffer size programming
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 22 Dec 2015 02:12:07 +0000 (04:12 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 29 Dec 2015 14:05:55 +0000 (09:05 -0500)
commitda0e216e069bd064199ed04b52de6fb23d810806
tree2512f42acc3d6e68aa394774bab1fd432cf2c4af
parentdfce9759abbc13f7f735ac4bf3f1a19737624ae6
r600: fix constant buffer size programming

When buffer size is less than 16, zero ends up being programmed as
size, which prevents the hardware from fetching the correct values.
Fix it by combining shift and align so that the value is always
rounded up.

Cc: "11.1 11.0 10.6" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92229
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c