freedreno: fix buffer import
authorRob Clark <robdclark@chromium.org>
Wed, 29 Apr 2020 22:23:26 +0000 (15:23 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 22:34:25 +0000 (22:34 +0000)
commita0fe98b478767e90cc5ed976e4e953117fe38308
tree8ea0c419a23df36867cb5b67a664877bd9dd6434
parent2efa76f795cb2b2bf00b317c580aeeeddd1e9bc2
freedreno: fix buffer import

`rsc->layout.cpp` is zero until we `fd_resource_layout_init()`

Fixes: 5a8718f01b3 ("freedreno: Make the slice pitch be bytes, not pixels.")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4818>
src/gallium/drivers/freedreno/freedreno_resource.c