AMD GFX12 modifiers
Olsak, Marek
Marek.Olsak at amd.com
Tue Jul 2 13:22:49 UTC 2024
[AMD Official Use Only - AMD Internal Distribution Only]
The code you are looking at seems out of date. The latest code is on amd-gfx. That doesn't matter though. This seems to be a general question about modifiers. Here's the answer.
Modifier definitions don't describe compatibility between chips and generations. They only identify the memory layout. Because of that, hw support can't be inferred from modifiers. There could be multiple GFX definitions, tile numbers, and even modifiers from other vendors describing exactly the same layout, and all such equivalent modifiers can be exposed by the same hw.
The gfx12 modifiers work in exactly the same way as any other modifiers.
Marek
________________________________
From: Alex Deucher <alexdeucher at gmail.com>
Sent: July 1, 2024 13:09
To: Simon Ser <contact at emersion.fr>; Olsak, Marek <Marek.Olsak at amd.com>
Cc: Pillai, Aurabindo <Aurabindo.Pillai at amd.com>; DRI Development <dri-devel at lists.freedesktop.org>; Siqueira, Rodrigo <Rodrigo.Siqueira at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>; Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Subject: Re: AMD GFX12 modifiers
+ Marek
On Sat, Jun 29, 2024 at 1:15 PM Simon Ser <contact at emersion.fr> wrote:
>
> Hi all!
>
> In 7ceb94e87bff ("drm/amd: Add gfx12 swizzle mode defs"), some
> definitions were added for GFX12 modifiers. However I'm not quite sure
> I understand how these work.
>
> Tile values seem to not be in the same namespace as GFX9 through GFX11,
> is that correct? In other words, can GFX9 ~ GFX11 modifiers be used with
> GFX12, or are these mutually exclusive?
>
> AMD_FMT_MOD_GFX12_DCC_MAX_COMPRESSED_BLOCK_MASK has a comment explaining
> the 3 possible values, is there a reason why #defines are missing for
> these values?
>
> The comment lists a lot more swizzle modes than just 64K_2D and 256K_2D,
> any reason why the rest are missing (at least for the 2D ones)?
>
> Could you explain how the new GFX12 modifiers work?
>
> Would it be possible to update the comment on top of #define AMD_FMT_MOD
> to reflect the GFX12 updates?
>
> Thanks,
>
> Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20240702/141e2c8f/attachment-0001.htm>
More information about the dri-devel
mailing list