panfrost: Add panfrost_streamout_offset helper
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 10 Jun 2020 23:28:28 +0000 (19:28 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 12 Jun 2020 14:45:50 +0000 (14:45 +0000)
commite26ac2e165c0c313df74266763b3dd0755354a98
tree88619f736f54ab5b8a4af36fd18630747f03cfc2
parent24c3b95925389ed355213fcb12acc9baa088aa87
panfrost: Add panfrost_streamout_offset helper

Calculates the bias required for an xfb record in the src_offset field
to account for truncating the address to force alignment.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5423>
src/gallium/drivers/panfrost/pan_cmdstream.c