vc4: Use vc4_setup_slices for resource import
authorEric Anholt <eric@anholt.net>
Thu, 22 Jun 2017 18:45:08 +0000 (19:45 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 12 Jul 2017 17:58:33 +0000 (10:58 -0700)
commitbb466a996ffcd328d7f4b543a202291913800979
treeaa8f4f3d8907c49672a26e8b3a04b363c060d943
parent111b6b77cb3147b12fd7907d75309e0bf023ced0
vc4: Use vc4_setup_slices for resource import

Rather than open-coding populating the first slice inside resource
import, use vc4_setup_slices to do it for us.

v2: Rebase on VC4_DEBUG=surf change

Reviewed-by: Daniel Stone <daniels@collabora.com>
src/gallium/drivers/vc4/vc4_resource.c