Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 827:d333f4248727
prev753:1fe39c3a9bbc
next850:28782ebbd01d
author nkeynes
date Sun Aug 24 02:57:15 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Adjust the hclip when the horizontal scaler is active
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Sun Jul 20 11:36:48 2008 +0000
1.2 +++ b/src/pvr2/pvr2.h Sun Aug 24 02:57:15 2008 +0000
1.3 @@ -58,6 +58,8 @@
1.4 #define BS_PALM 0x00000080 /* ? */
1.5 #define BS_PALN 0x000000C0 /* ? */
1.6
1.7 +#define SCALER_HSCALE 0x00010000
1.8 +
1.9 #define PVR2_RAM_BASE 0x05000000
1.10 #define PVR2_RAM_BASE_INT 0x04000000
1.11 #define PVR2_RAM_SIZE (8 * 1024 * 1024)
1.12 @@ -129,7 +131,7 @@
1.13 /****************************** Frame Buffer *****************************/
1.14
1.15 /**
1.16 - * Write a block of data to an address in the DMA range (0x10000000 -
1.17 + * Write a block of data to an address in the DMA range (0x10000000 -
1.18 * 0x13FFFFFF), ie TA, YUV, or texture ram.
1.19 */
1.20 void pvr2_dma_write( sh4addr_t dest, unsigned char *src, uint32_t length );
1.21 @@ -153,7 +155,7 @@
1.22
1.23 /**
1.24 * Read a twiddled image from interleaved memory address space (aka 64-bit address
1.25 - * space), writing the image to the destination buffer in detwiddled format.
1.26 + * space), writing the image to the destination buffer in detwiddled format.
1.27 * Width and height must be powers of 2
1.28 * This version reads 4-bit pixels.
1.29 */
1.30 @@ -162,7 +164,7 @@
1.31
1.32 /**
1.33 * Read a twiddled image from interleaved memory address space (aka 64-bit address
1.34 - * space), writing the image to the destination buffer in detwiddled format.
1.35 + * space), writing the image to the destination buffer in detwiddled format.
1.36 * Width and height must be powers of 2
1.37 * This version reads 8-bit pixels.
1.38 */
1.39 @@ -170,21 +172,21 @@
1.40
1.41 /**
1.42 * Read a twiddled image from interleaved memory address space (aka 64-bit address
1.43 - * space), writing the image to the destination buffer in detwiddled format.
1.44 + * space), writing the image to the destination buffer in detwiddled format.
1.45 * Width and height must be powers of 2, and src must be 16-bit aligned.
1.46 * This version reads 16-bit pixels.
1.47 */
1.48 void pvr2_vram64_read_twiddled_16( unsigned char *dest, sh4addr_t src, uint32_t width, uint32_t height );
1.49
1.50 /**
1.51 - * Read an image from the interleaved memory address space (aka 64-bit address space)
1.52 + * Read an image from the interleaved memory address space (aka 64-bit address space)
1.53 * where the source and destination line sizes may differ. Note that both byte
1.54 * counts must be a multiple of 4, and the src address must be 32-bit aligned.
1.55 */
1.56 void pvr2_vram64_read_stride( unsigned char *dest, uint32_t dest_line_bytes, sh4addr_t srcaddr,
1.57 uint32_t src_line_bytes, uint32_t line_count );
1.58 /**
1.59 - * Dump a portion of vram to a stream from the interleaved memory address
1.60 + * Dump a portion of vram to a stream from the interleaved memory address
1.61 * space.
1.62 */
1.63 void pvr2_vram64_dump( sh4addr_t addr, uint32_t length, FILE *f );
1.64 @@ -195,7 +197,7 @@
1.65 *
1.66 * @param buffer A render buffer indicating the address to store to, and the
1.67 * format the data needs to be in.
1.68 - * @param backBuffer TRUE to flush the back buffer, FALSE for
1.69 + * @param backBuffer TRUE to flush the back buffer, FALSE for
1.70 * the front buffer.
1.71 */
1.72 void pvr2_render_buffer_copy_to_sh4( render_buffer_t buffer );
1.73 @@ -216,7 +218,7 @@
1.74 /**
1.75 * Find the first polygon or sprite context in the supplied buffer of TA
1.76 * data.
1.77 - * @return A pointer to the context, or NULL if it cannot be found
1.78 + * @return A pointer to the context, or NULL if it cannot be found
1.79 */
1.80 uint32_t *pvr2_ta_find_polygon_context( uint32_t *buf, uint32_t length );
1.81
1.82 @@ -298,7 +300,7 @@
1.83 * Flush all textures and delete. The cache will be non-functional until
1.84 * the next call to texcache_init(). This would typically be done if
1.85 * switching GL targets.
1.86 - */
1.87 + */
1.88 void texcache_shutdown( void );
1.89
1.90 /**
1.91 @@ -322,7 +324,7 @@
1.92 * multiple interpretations). We use the texture address as the primary
1.93 * index, but allow for multiple instances at each address. The texture
1.94 * will be bound to the GL_TEXTURE_2D target before being returned.
1.95 - *
1.96 + *
1.97 * If the texture has already been bound, return the ID to which it was
1.98 * bound. Otherwise obtain an unused texture ID and set it up appropriately.
1.99 */
.