turnip: don't hardcode gmem base for input attachment
authorJonathan Marek <jonathan@marek.ca>
Thu, 27 Feb 2020 16:18:45 +0000 (11:18 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Feb 2020 14:04:20 +0000 (14:04 +0000)
commitcf302c9a22fab86da0bc70f377c8f0c43f5d8d77
treed7df740bd241fd97f51050e6fd73228d8c3dfd2e
parent6420406f197cc4f1170c340e839701aeb253fdf0
turnip: don't hardcode gmem base for input attachment

Newer a6xx no longer has programmable GMEM base, so we can't rely on the
kernel driver setting it to 0x100000 (GMEM base is 0 on such GPUs).

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3979>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_drm.c
src/freedreno/vulkan/tu_private.h