gallium/u_transfer_helper: Fix MSAA mappings with nonzero x/y.
authorEric Anholt <eric@anholt.net>
Mon, 9 Jul 2018 21:09:07 +0000 (14:09 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 12 Jul 2018 18:31:00 +0000 (11:31 -0700)
commit589bb5bd6571f03d85e5bbc835549d9a0d71ead1
tree78b607243b37f1ecb6dc5f622c8f3f5d4c8dba9b
parentccb8309516792fedd4ed50f8db81d84682b967c3
gallium/u_transfer_helper: Fix MSAA mappings with nonzero x/y.

We created a temporary with box->{width,height} and then tried to map
width,height from a nonzero offset when we meant to just map the whole
temporary.

Fixes segfaults in V3D in dEQP-GLES3.functional.prerequisite.read_pixels
with --deqp-egl-config-name=rgba8888d24s8ms4 and also piglit's read-front
clear-front-first -samples=4

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/auxiliary/util/u_transfer_helper.c