![Texas Instruments TVP4020 PERMEDIA 2 Скачать руководство пользователя страница 141](http://html.mh-extra.com/html/texas-instruments/tvp4020-permedia-2/tvp4020-permedia-2_reference-manual_1097169141.webp)
Initialization
TVP4020
Programmers Reference Manual
132
Note that the P
ERMEDIA
Graphics Core supports a maximum screen
resolution of 2048 x 2048
1
.
6.2.5
Screen Clipping Region
P
ERMEDIA
supports a screen scissor clip which should be set at system
initialization, and a user scissor clip which should initially be disabled.
Assuming that the FBWindowBase and LBWindowBase registers are set
appropriately, then setting the screen clip prevents writing outside the
framebuffer memory (and localbuffer), which could have undesirable
results. The following example would be appropriate for a resolution of
1024 by 768 pixels:
screenSize.X = 1024
screenSize.Y = 768
ScreenSize(ScreenSize)
scissorMode.ScreenScissorEnable = PERMEDIA_ENABLE
scissorMode.UserScissorEnable = PERMEDIA_DISABLE
ScissorMode(ScissorMode)
6.2.6
Localbuffer and Framebuffer Configuration
Since P
ERMEDIA
supports a unified memory architecture, it must be
decided how the memory is to be partitioned between framebuffer,
localbuffer and texture memory. A typical configuration might be to
allocate 2 screen sized buffers: one for the visible screen, the other for
the 3D back buffer. Then allocate a localbuffer: this is always 16 bits per
pixel; and allow the remainder to be used for texture memory. The
localbuffer and texture memory can be considered to have different
shapes to the front and back buffers. For example, suppose that a
screen resolution of 800x600 at 8 bits per pixel is required, then the
following offsets could be used. Each offset is a count in pixels from the
start of memory.
Front buffer: pixel offset 0
Back buffer: pixel offset 480000 (= 600*800 bytes)
Local buffer: pixel offset 480000 (offset in 16 bit pixels)
Texture memory: byte offset 1920000 (= 2*600*800 +
600*800*sizeof(USHORT))
The size of the pixel depends on the buffer being considered. Hence the
offset to the back buffer and the localbuffer appear to be the same but
one is measured in bytes, the other in shorts.
These offsets should be saved as software copies to used as required.
For example, to select the front buffer for rendering, the FBPixelOffset
1
The actual screen resolution obtainable will be limited by the RAMDAC. In the case of
the integrated RAMDAC this is 1600 x 1280 at a screen refresh rate of 85 Hz.
Содержание TVP4020 PERMEDIA 2
Страница 1: ...Texas Instruments TVP4020 PERMEDIA 2 Programmer s Reference Manual Issue 4 ...
Страница 47: ...Memory I O and Organization TVP4020 Programmers Reference Manual 38 Texture address TextureBaseAddress T W S ...
Страница 284: ...TVP4020 Programmers Reference Manual A Gouraud Shaded Triangle 275 ...
Страница 292: ...TVP4020 Programmers Reference Manual Register Tables 283 ...
Страница 314: ...TVP4020 Programmers Reference Manual Index 305 ...
Страница 315: ...Index TVP4020 Programmers Reference Manual 306 Index ...
Страница 323: ...Index TVP4020 Programmers Reference Manual 314 ...