panfrost: Merge emit_texture_payload() and emit_texture_payload_v7()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 16 Dec 2020 08:14:48 +0000 (09:14 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 4 Jan 2021 16:05:42 +0000 (17:05 +0100)
commitab1dec8dd4a5957b500423229c92af17ea52f3ef
tree7b149f3fed743b4c00d29f2f4a7e760d0d0de748
parent062dde41517f4acbc26e969046ab7255e64f5749
panfrost: Merge emit_texture_payload() and emit_texture_payload_v7()

The only reason we have two different functions to prepare the texture
payload is the different ordering between pre-v7 and v7+ GPUs. Abstract
the surface iteration so we can merge panfrost_emit_texture_payload_v7()
and panfrost_emit_texture_payload().

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8125>
src/panfrost/lib/pan_texture.c