]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: rewrite convert_tiling_flags_to_modifier_gfx12
authorMarek Olšák <marek.olsak@amd.com>
Sat, 1 Jun 2024 18:31:39 +0000 (14:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Jul 2024 20:10:47 +0000 (16:10 -0400)
commitf340f2bad1c790d2759680b7df853f548e7beadc
tree6d109186095f3ac86e4c1d5ed7d2c9a18ada545f
parentca280d291967dee97ad4340e1c68084c702d2b3c
drm/amdgpu: rewrite convert_tiling_flags_to_modifier_gfx12

There were multiple bugs, like checking SWIZZLE_MODE before checking
GFX12_SWIZZLE_MODE, which has undefined behavior.

The function had no effect before (it always returned -EINVAL).

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c