nvc0: when mapping directly, provide accurate xfer info + start
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 24 Jun 2016 02:33:59 +0000 (22:33 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 24 Jun 2016 13:53:13 +0000 (09:53 -0400)
commitb433cb51e50cab878cbaa023662bacd1f923a183
tree9cb50a7ffbf7017218e4e595f44b684ab190e558
parent3f0fa3b32dec4aed3ee3fb95ac7b53cbf4af3091
nvc0: when mapping directly, provide accurate xfer info + start

We were ignoring the incoming box parameters, and were providing totally
bogus stride/layer stride, and other bits, for when a non-full-surface
map was requested.

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