<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Calibri;font-size:10pt;color:#0000FF;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[AMD Official Use Only - AMD Internal Distribution Only]<br>
</p>
<br>
<div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The gfx12 modifiers work in exactly the same way as any other modifiers.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Marek</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Alex Deucher <alexdeucher@gmail.com><br>
<b>Sent:</b> July 1, 2024 13:09<br>
<b>To:</b> Simon Ser <contact@emersion.fr>; Olsak, Marek <Marek.Olsak@amd.com><br>
<b>Cc:</b> Pillai, Aurabindo <Aurabindo.Pillai@amd.com>; DRI Development <dri-devel@lists.freedesktop.org>; Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com>; Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl><br>
<b>Subject:</b> Re: AMD GFX12 modifiers</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">+ Marek<br>
<br>
On Sat, Jun 29, 2024 at 1:15 PM Simon Ser <contact@emersion.fr> wrote:<br>
><br>
> Hi all!<br>
><br>
> In 7ceb94e87bff ("drm/amd: Add gfx12 swizzle mode defs"), some<br>
> definitions were added for GFX12 modifiers. However I'm not quite sure<br>
> I understand how these work.<br>
><br>
> Tile values seem to not be in the same namespace as GFX9 through GFX11,<br>
> is that correct? In other words, can GFX9 ~ GFX11 modifiers be used with<br>
> GFX12, or are these mutually exclusive?<br>
><br>
> AMD_FMT_MOD_GFX12_DCC_MAX_COMPRESSED_BLOCK_MASK has a comment explaining<br>
> the 3 possible values, is there a reason why #defines are missing for<br>
> these values?<br>
><br>
> The comment lists a lot more swizzle modes than just 64K_2D and 256K_2D,<br>
> any reason why the rest are missing (at least for the 2D ones)?<br>
><br>
> Could you explain how the new GFX12 modifiers work?<br>
><br>
> Would it be possible to update the comment on top of #define AMD_FMT_MOD<br>
> to reflect the GFX12 updates?<br>
><br>
> Thanks,<br>
><br>
> Simon<br>
</div>
</span></font></div>
</div>
</body>
</html>