summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/ttm/ttm_pool_internal.h
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>2025-10-20 12:54:06 +0100
committerTvrtko Ursulin <tursulin@ursulin.net>2025-10-31 08:54:54 +0000
commitd53adc244fbf965d7efeefb278ff8f2664bbe20e (patch)
tree31f122a7e1b8c9a4de72529e77212626b3fb6f81 /drivers/gpu/drm/ttm/ttm_pool_internal.h
parentd7a849d126d0a75b2c5101f82d0c9693e04a43fd (diff)
drm/ttm: Add getter for some pool properties
No functional change but to allow easier refactoring in the future. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Cc: Christian König <christian.koenig@amd.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net> Link: https://lore.kernel.org/r/20251020115411.36818-2-tvrtko.ursulin@igalia.com
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_pool_internal.h')
-rw-r--r--drivers/gpu/drm/ttm/ttm_pool_internal.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_pool_internal.h b/drivers/gpu/drm/ttm/ttm_pool_internal.h
new file mode 100644
index 000000000000..3e50d30bd95a
--- /dev/null
+++ b/drivers/gpu/drm/ttm/ttm_pool_internal.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0 OR MIT */
+/* Copyright (c) 2025 Valve Corporation */
+
+#ifndef _TTM_POOL_INTERNAL_H_
+#define _TTM_POOL_INTERNAL_H_
+
+#include <drm/ttm/ttm_pool.h>
+
+static inline bool ttm_pool_uses_dma_alloc(struct ttm_pool *pool)
+{
+ return pool->use_dma_alloc;
+}
+
+static inline bool ttm_pool_uses_dma32(struct ttm_pool *pool)
+{
+ return pool->use_dma32;
+}
+
+#endif