aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_drm.c
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2020-02-27 11:18:45 -0500
committerMarge Bot <[email protected]>2020-02-28 14:04:20 +0000
commitcf302c9a22fab86da0bc70f377c8f0c43f5d8d77 (patch)
treed7df740bd241fd97f51050e6fd73228d8c3dfd2e /src/freedreno/vulkan/tu_drm.c
parent6420406f197cc4f1170c340e839701aeb253fdf0 (diff)
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3979>
Diffstat (limited to 'src/freedreno/vulkan/tu_drm.c')
-rw-r--r--src/freedreno/vulkan/tu_drm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_drm.c b/src/freedreno/vulkan/tu_drm.c
index 9b2e6f78879..5e91adaf89e 100644
--- a/src/freedreno/vulkan/tu_drm.c
+++ b/src/freedreno/vulkan/tu_drm.c
@@ -80,6 +80,12 @@ tu_drm_get_gmem_size(const struct tu_physical_device *dev, uint32_t *size)
}
int
+tu_drm_get_gmem_base(const struct tu_physical_device *dev, uint64_t *base)
+{
+ return tu_drm_get_param(dev, MSM_PARAM_GMEM_BASE, base);
+}
+
+int
tu_drm_submitqueue_new(const struct tu_device *dev,
int priority,
uint32_t *queue_id)