<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Hello
there,<o:p></o:p></span>
<div class="moz-forward-container">
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Since
I’m on a big-endian system I’ve been following the
discusssion and have two (maybe not quite related, and
possibly dumb) questions:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">1.There’s
been a similar discussion on mesa-dev concerning big-endian
and #ifdef’s, see<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/archives/mesa-dev/2016-February/107701.html">https://lists.freedesktop.org/archives/mesa-dev/2016-February/107701.html</a><o:p></o:p></span></p>
<p class="MsoNormal"><span class="st">Without checking whether
the #defines are actually, well, #defined it’s doubtful
whether the patch would have any effect on all platforms.
conclusion from the discussion above was that the whole
big-endian #ifdef story is „</span><i>a very fragile
situation</i><span class="st">„</span><span class="st"><span
style="font-family:Wingdings"></span><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">2.
I’ve recently stumbled across a register definition for
(older) radeon GPU’s, what caught my eye was<o:p></o:p></span></p>
<table class="MsoNormalTable"
style="margin-left:-5.4pt;border-collapse:collapse;border:none"
border="1" cellpadding="0" cellspacing="0">
<tbody>
<tr style="height:4.4pt">
<td colspan="4" style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.4pt" valign="top">
<p class="Default"><b><span style="font-size:10.0pt">CB:RB3D_COLORPITCH[0-3]
· [R/W] · 32 bits · Access: 8/16/32 ·
MMReg:0x4e38-0x4e44
</span></b><span style="font-size:10.0pt"><o:p></o:p></span></p>
</td>
</tr>
<tr style="height:10.25pt">
<td colspan="4" style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:10.25pt" valign="top">
<p class="Default"><b><span style="font-size:10.0pt">DESCRIPTION:
</span></b><i><span style="font-size:10.0pt">Color
buffer format and tiling control for all the
multibuffers and the pitch of multibuffer 0.
Unpipelined. The cache must be empty before any of
the registers are changed. </span></i><span
style="font-size:10.0pt"><o:p></o:p></span></p>
</td>
</tr>
<tr style="height:4.5pt">
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">Field
Name <o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">Bits <o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">Default
<o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">Description
<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:4.5pt">
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">COLORPITCH
<o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">13:1 <o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">none <o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">3D
destination pitch in multiples of 2-pixels.
<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:34.5pt">
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:34.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">COLORTILE
<o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:34.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">16 <o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:34.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">none <o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:34.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">Denotes
whether the 3D destination is in macrotiled format.
POSSIBLE VALUES: 00 - 3D destination is not
macrotiled 01 - 3D destination is macrotiled
<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:51.8pt">
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:51.8pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">COLORMICROTILE
<o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:51.8pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">18:17
<o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:51.8pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">none <o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:51.8pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">Denotes
whether the 3D destination is in microtiled format.
POSSIBLE VALUES: 00 - 3D destination is no
microtiled 01 - 3D destination is microtiled 02 - 3D
destination is square microtiled. Only available in
16-bit 03 - (reserved) <o:p></o:p></span></p>
</td>
</tr>
<tr style="height:4.5pt">
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">COLORENDIAN
<o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">20:19
<o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">none <o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">Specifies
endian control for the color buffer <o:p></o:p></span></p>
<p class="Default"><span style="font-size:10.0pt">POSSIBLE
VALUES: 00 - No swap 01 - Word swap (2 bytes in
16-bit) 02 - Dword swap (4 bytes in a 32-bit) 03 -
Half-Dword swap (2 16-bit in a 32-bit)
<o:p></o:p></span></p>
<p class="Default"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:4.5pt">
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">COLORFORMAT
<o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">24:21
<o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">0x6 <o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 5.4pt 0cm
5.4pt;height:4.5pt" valign="top">
<p class="Default"><span style="font-size:10.0pt">3D
destination color format. POSSIBLE VALUES: 00 -
(Reserved) 01 - (Reserved) 02 - (Reserved) 03 -
ARGB1555 04 - RGB565 05 - (Reserved) 06 - ARGB8888
07 - ARGB32323232 08 - (Reserved) 09 - I8 10 -
ARGB16161616 11 - YUV422 packed (VYUY) 12 - YUV422
packed (YVYU) 13 - UV88 14 - (reserved) 15 -
ARGB4444
<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Dumb
question: Could that register be used for just setting the
GPU to big-endian mode and leave all the swapping to the GPU
?<o:p></o:p></span></p>
<p class="MsoNormal"><span class="st"><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>