texgetimage: consolidate 1D array handling code.
authorDave Airlie <airlied@redhat.com>
Wed, 11 Nov 2015 02:33:38 +0000 (12:33 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 23 Nov 2015 20:43:21 +0000 (06:43 +1000)
commit237bcdbab529237a120e225c63f567934a955523
treeff53d09b1f9dddeac3ddef8e6adfe4e01ec0ebaf
parentd9b8fde963a53d4e06570d8bece97f806714507a
texgetimage: consolidate 1D array handling code.

This should fix the getteximage-depth test that currently asserts.

I was hitting problem with virgl as well in this area.

This moves the 1D array handling code to a single place.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Cc: "10.6 11.0 11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/texgetimage.c