st/mesa: don't assume that the whole surface gets mapped
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 24 Jun 2016 02:27:40 +0000 (22:27 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 24 Jun 2016 13:53:13 +0000 (09:53 -0400)
commit3f0fa3b32dec4aed3ee3fb95ac7b53cbf4af3091
tree6e2d644ffb85eb10b0072fb3e23f31477b0b37e8
parent0da890e62cf14fef273500491d14fb8d980fe452
st/mesa: don't assume that the whole surface gets mapped

Under some circumstances, the driver may choose to return a temporary
surface instead of a pointer to the original. Make sure to pass the
actual view volume to be mapped to the transfer function rather than
adjusting the map pointer after-the-fact.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_cb_readpixels.c