nvc0: increase texture buffer object alignment to 256 for pre-GM107
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 8 Apr 2017 18:56:16 +0000 (14:56 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 11 Apr 2017 04:13:55 +0000 (00:13 -0400)
commit8036809799c453b02f4c8fedbb5faaeb19af90c2
treec5933443c180afe45f260305e94737ec7e870e6f
parent8ffd54fef838784ef4388d48843cddf55246e529
nvc0: increase texture buffer object alignment to 256 for pre-GM107

We currently don't pass the low byte of the address via the surface
info, so in order to work with images, these have to implicitly be
aligned to 256. The proprietary driver also doesn't go out of its way to
provide lower alignment.

Fixes GL45-CTS.texture_buffer.texture_buffer_texture_buffer_range

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c