]> Gentwo Git Trees - linux/.git/commit
drm/ttm: Replace multiple booleans with flags in pool init
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Mon, 20 Oct 2025 11:54:07 +0000 (12:54 +0100)
committerTvrtko Ursulin <tursulin@ursulin.net>
Fri, 31 Oct 2025 09:01:08 +0000 (09:01 +0000)
commit0af5b6a8f8dd41fd801bb0f2af3295d69ba8b7fe
tree916000b46e1064b84a3c6d062e230126a93d353b
parentd53adc244fbf965d7efeefb278ff8f2664bbe20e
drm/ttm: Replace multiple booleans with flags in pool init

Multiple consecutive boolean function arguments are usually not very
readable.

Replace the ones in ttm_pool_init() with flags with the additional
benefit of soon being able to pass in more data with just this one
code base churning cost.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: Alex Deucher <alexander.deucher@amd.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-3-tvrtko.ursulin@igalia.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/ttm/tests/ttm_device_test.c
drivers/gpu/drm/ttm/tests/ttm_pool_test.c
drivers/gpu/drm/ttm/ttm_device.c
drivers/gpu/drm/ttm/ttm_pool.c
drivers/gpu/drm/ttm/ttm_pool_internal.h
include/drm/ttm/ttm_allocation.h [new file with mode: 0644]
include/drm/ttm/ttm_pool.h