freedreno: combine fd_resource_layer_offset()/fd_resource_offset()
authorRob Clark <robdclark@gmail.com>
Tue, 18 Dec 2018 15:27:10 +0000 (10:27 -0500)
committerRob Clark <robdclark@gmail.com>
Sat, 22 Dec 2018 20:27:37 +0000 (15:27 -0500)
commitd71a50f83146864df097566c413454366a61bb3c
tree5dfd36aaf0d37db82f3b9670fa32387a4b030a01
parent6667dde098c4d9f30720024e76e35963eec2c511
freedreno: combine fd_resource_layer_offset()/fd_resource_offset()

We really only need this logic in one place.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_resource.c