SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
In this section, the (x,y) coordinates are given in pixel units.
Given an (S, Y, X) orientation, the (x,y) coordinates of the first pixel of the frame in the oriented view (where W = the width and H = the height in pixels of the container in the considered frame mode) is:
(x,y) = (xor, yor) when S, (yor, xor) otherwise
with:
xor = x0 when
X, W-1-x1 otherwise
yor = y0 when
Y, H-1-y1 otherwise
Given a (M1, M0) TILER mode where M1 # 0 or M0 # 0, the size in bytes of a pixel is 22M1+M0.
Therefore, given an (S,
Y,
X) orientation and a n(M1, M0) TILER mode where M1 # 0 or M0 # 0, the byte offset of the base address of the considered oriented frame in its container is:
base_address((x0, y0), (x1, y1), (S,
Y,
X), (M1, M0)) = (yorW + xor) P5 when S, (xorH + yor) P5 otherwise
with:
xor = x0 when
X, W-1-x1 otherwise
yor = y0 when
Y, H-1-y1 otherwise
P5 = 22M1+M0
In its natural orientation, the TILER container consists of 8192 lines of 16,384 pixels of 8 bits, or 4096 lines of 16,384 pixels of 16 bits, or 4096 lines of 8192 pixels of 32 bits.
This frame-buffer address generation is independent from the page size. For instance, the 8-bit frame-buffer shown in Figure 15-44 that ranges from the top-left pixel at (16, 32) to the bottom-right pixel at (223, 159) in the natural orientation view, corresponds to the 29-bit view address offsets and full 33-bit TILER addresses given in Table 15-32.
S | Y | X | xor | yor | 29-Bit Address Offset in View | Full 33-Bit TILER Address |
---|---|---|---|---|---|---|
0 | 0 | 0 | 16 | 32 | 00080010h | 100080010h |
0 | 0 | 1 | 16,160 | 32 | 00083F20h | 120083F20h |
0 | 1 | 0 | 16 | 8032 | 07D80010h | 147D80010h |
0 | 1 | 1 | 16,160 | 8032 | 07D83F20h | 167D83F20h |
1 | 0 | 0 | 16 | 32 | 00020020h | 180020020h |
1 | 0 | 1 | 16,160 | 32 | 07E40020h | 1A7E40020h |
1 | 1 | 0 | 16 | 8032 | 00021F60h | 1C0021F60h |
1 | 1 | 1 | 16,160 | 8032 | 07E41F60h | 1E7E41F60h |
In this example the TILER is addressed in 8-bit mode, which translates to addresses with all mode bits (bits 27 and 28) cleared in the 29-bit address offset in view and in the full 33-bit TILER address.